Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/http/_io.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@v0.56.0/http/_io.ts";

Functions

ParseHTTPVersion parses a HTTP version string. "HTTP/1.0" returns (1, 0). Ported from https://github.com/golang/go/blob/f5c43b9/src/net/http/request.go#L766-L792

Read trailer headers from reader and append values to headers. "trailer" field will be deleted.

write trailer headers to writer. it mostly should be called after writeResponse