-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
v1rtl
committed
Aug 3, 2023
1 parent
1af6288
commit 26a342c
Showing
1 changed file
with
1 addition
and
9 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,14 +1,6 @@ | ||
/** Information about the connection a request arrived on. */ | ||
export interface ConnInfo { | ||
/** The local address of the connection. */ | ||
readonly localAddr: Deno.Addr | ||
/** The remote address of the connection. */ | ||
readonly remoteAddr: Deno.Addr | ||
} | ||
|
||
export type Handler = ( | ||
request: Request, | ||
connInfo: ConnInfo, | ||
connInfo: Deno.Conn | ||
) => Response | Promise<Response> | ||
|
||
export type HandlerOrListener = Handler | Deno.Listener |