File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,11 @@ interface ConnectionError {
7373}
7474
7575interface ServerReservedEvents {
76- connection : ( socket : Socket , request : Request , connInfo : Deno . ServeHandlerInfo ) => void ;
76+ connection : (
77+ socket : Socket ,
78+ request : Request ,
79+ connInfo : Deno . ServeHandlerInfo ,
80+ ) => void ;
7781 connection_error : ( err : ConnectionError ) => void ;
7882}
7983
@@ -125,7 +129,10 @@ export class Server extends EventEmitter<
125129 * @param additionalHandler - another handler which will receive the request if the path does not match
126130 */
127131 public handler ( additionalHandler ?: Deno . ServeHandler ) {
128- return ( req : Request , connInfo : Deno . ServeHandlerInfo ) : Response | Promise < Response > => {
132+ return (
133+ req : Request ,
134+ connInfo : Deno . ServeHandlerInfo ,
135+ ) : Response | Promise < Response > => {
129136 const url = new URL ( req . url ) ;
130137 if ( url . pathname === this . opts . path ) {
131138 return this . handleRequest ( req , connInfo , url ) ;
You can’t perform that action at this time.
0 commit comments