import * as servest from "https://deno.land/x/servest@v1.3.4/serveio.ts";
Functions
Read http request from reader. 'status-line' and headers are certainly read. body and trailers may not be read. Read will be aborted when opts.cancel is called or any read wait to reader is over opts.readTimeout. | |
read http response from reader | |
write http body to writer. Reader without contentLength will be written by chunked encoding | |
write headers to writer | |
write http request. Host, Content-Length, Transfer-Encoding headers are set if needed | |
write http response to writer. Content-Length, Transfer-Encoding headers are set if needed |