import * as mod from "https://dotland.deno.dev/x/servest@v1.3.4/mod.ts";
Classes
error that is thrown when tcp connection is closed | |
Variables
Deny requests with 400 if content-type doesn't match | |
Functions
Basic Auth middleware | |
Create App | |
Create dummy request & responder that records a response from HTTPHandler | |
create ServerResponder object | |
Try to continually read and process requests from keep-alive connection. | |
Parse multipart/form-data request | |
Parse application/x-www-form-urlencoded request | |
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 | |
Serve jsx/tsx by dynamic import | |
Serve static files in specified directory. | |
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 |
Interfaces
keep-alive http agent for single host. each message will be sent in serial | |
http agent send options | |
I App | |
request data for building http request to server | |
I DFC | |
Global error handler for requests | |
Incoming http request for handling request from client | |
Incoming http response from server to client | |
Basic responder for http response | |
Router handler | |
serve options | |
Outgoing http response for building request to server | |
response data for building http response to client | |
WebSocket Handler |