Http module

Transport

structSource

How a client reaches a server. Both procedures run on a fiber of the running scheduler.

Fields

data: *void
Passed to both procedures; connections made through one transport are only reused by it.
base: #type (data: *void) -> string
Where a relative URL points ("http://localhost:8080"); null: the client needs a base_url for relative URLs.
open: #type (data: *void, url: Url) -> Link, Io.Io_Error
A new connection for url (its scheme, host and port); null: a TCP connection to the host.

See also