-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2.19.11 (2022-12-08) Bug fixes [ #2409 ] Ensure alias is being deleted when removing a collection (alexandrebouthinon) Enhancements [ #2407 ] Add pipes to alter payload parsing at protocol level (Shiranuit) Co-authored-by: Shiranuit <[email protected]>
- Loading branch information
1 parent
d9bc9fe
commit cfa0c75
Showing
16 changed files
with
10,985 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { JSONObject } from "../.."; | ||
|
||
export interface ClientConnection { | ||
id: string; | ||
protocol: string; | ||
ips: string[]; | ||
headers: JSONObject; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { JSONObject } from "../.."; | ||
import { ClientConnection } from "./ClientConnection"; | ||
|
||
export interface HttpMessage { | ||
connection: ClientConnection; | ||
content: JSONObject; | ||
ips: string[]; | ||
query: string; | ||
path: string; | ||
method: string; | ||
headers: JSONObject; | ||
requestId: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { JSONObject, PipeEventHandler } from "../../../"; | ||
import { ClientConnection } from "../ClientConnection"; | ||
import { HttpMessage } from "../HttpMessage"; | ||
|
||
export type EventHTTPBeforeParsingPayload = { | ||
name: `protocol:http:beforeParsingPayload`; | ||
|
||
args: [{ message: HttpMessage; payload: Buffer }]; | ||
} & PipeEventHandler; | ||
|
||
export type EventHTTPAfterParsingPayload = { | ||
name: `protocol:http:afterParsingPayload`; | ||
|
||
args: [{ message: HttpMessage; payload: JSONObject }]; | ||
} & PipeEventHandler; | ||
|
||
export type EventWebsocketBeforeParsingPayload = { | ||
name: `protocol:websocket:beforeParsingPayload`; | ||
|
||
args: [{ connection: ClientConnection; payload: Buffer }]; | ||
} & PipeEventHandler; | ||
|
||
export type EventWebsocketAfterParsingPayload = { | ||
name: `protocol:websocket:afterParsingPayload`; | ||
|
||
args: [{ connection: ClientConnection; payload: JSONObject }]; | ||
} & PipeEventHandler; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.