Http
This package provides HTTP client and server.
{ "type": "system"}Install
Section titled “Install”{ "dependencies": { "Http": "pen:///http" }}Http'Client module
Section titled “Http'Client module”This module provides an HTTP client.
No types are defined.
Functions
Section titled “Functions”Send an HTTP request.
\(ctx Context, r Request) Response | errorHttp'Context module
Section titled “Http'Context module”Context
Section titled “Context”An HTTP context
type Context = context'ContextFunctions
Section titled “Functions”No functions are defined.
Http'Request module
Section titled “Http'Request module”Request
Section titled “Request”An HTTP request
type Request { Method string Uri string Headers {string: string} Body string}Functions
Section titled “Functions”No functions are defined.
Http'Response module
Section titled “Http'Response module”Response
Section titled “Response”An HTTP response
type Response { Status number Headers {string: string} Body string}Functions
Section titled “Functions”No functions are defined.
Http'Server module
Section titled “Http'Server module”This module provides an HTTP server.
No types are defined.
Functions
Section titled “Functions”Run an HTTP service.
\(ctx Context, address string, callback \(Request) Response) none | error