-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Access session in request/response interceptors
- Loading branch information
1 parent
253ca13
commit 6abda7f
Showing
7 changed files
with
14 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import { Session } from '../Session/Session'; | ||
import { ResponseAwareEvent } from './ResponseAwareEvent'; | ||
import { Request } from '../Request/Request'; | ||
import { IRoute } from '../Router/Router'; | ||
export declare class RequestEvent extends ResponseAwareEvent { | ||
readonly request: Request; | ||
readonly route: IRoute; | ||
constructor(request: Request, route: IRoute); | ||
readonly session?: Session; | ||
constructor(request: Request, route: IRoute, session?: Session); | ||
} |
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import { Request } from '../Request/Request'; | ||
import { Response } from '../Response/Response'; | ||
import { IRoute } from '../Router/Router'; | ||
import { Session } from '../Session/Session'; | ||
export declare class ResponseEvent { | ||
readonly request: Request; | ||
readonly route: IRoute; | ||
readonly response: Response; | ||
constructor(request: Request, route: IRoute, response: Response); | ||
readonly session?: Session; | ||
constructor(request: Request, route: IRoute, response: Response, session?: Session); | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@byteshift/harmony", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A component based HTTP server micro-framework", | ||
"author": "Harold Iedema <[email protected]>", | ||
"devDependencies": { | ||
|
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