From cde4dbb35132848ffece59ef9cfaccff32347124 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 14 Jul 2020 15:24:17 -0400 Subject: Use dprint for internal formatting (#6682) --- std/http/server.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'std/http/server.ts') diff --git a/std/http/server.ts b/std/http/server.ts index b1ffed96b..93f116fff 100644 --- a/std/http/server.ts +++ b/std/http/server.ts @@ -65,7 +65,7 @@ export class ServerRequest { .map((e): string => e.trim().toLowerCase()); assert( parts.includes("chunked"), - 'transfer-encoding must include "chunked" if content-length is not set' + 'transfer-encoding must include "chunked" if content-length is not set', ); this._body = chunkedBodyReader(this.headers, this.r); } else { @@ -136,7 +136,7 @@ export class Server implements AsyncIterable { // Yields all HTTP requests on a single TCP connection. private async *iterateHttpRequests( - conn: Deno.Conn + conn: Deno.Conn, ): AsyncIterableIterator { const reader = new BufReader(conn); const writer = new BufWriter(conn); @@ -203,7 +203,7 @@ export class Server implements AsyncIterable { // same kind and adds it to the request multiplexer so that another TCP // connection can be accepted. private async *acceptConnAndIterateHttpRequests( - mux: MuxAsyncIterator + mux: MuxAsyncIterator, ): AsyncIterableIterator { if (this.closing) return; // Wait for a new connection. @@ -302,7 +302,7 @@ export function serve(addr: string | HTTPOptions): Server { */ export async function listenAndServe( addr: string | HTTPOptions, - handler: (req: ServerRequest) => void + handler: (req: ServerRequest) => void, ): Promise { const server = serve(addr); @@ -359,7 +359,7 @@ export function serveTLS(options: HTTPSOptions): Server { */ export async function listenAndServeTLS( options: HTTPSOptions, - handler: (req: ServerRequest) => void + handler: (req: ServerRequest) => void, ): Promise { const server = serveTLS(options); -- cgit v1.2.3