src/wire.bend relies on unsafe/foreign
raw source on the hub · import emerging-ezhttp@0.8.0.0/src/wire.bend as Wire
ezhttp/src/wire: one request out and one response back. TLS and DNS stay in the effect (OpenSSL via dlopen); this module does not re-specify TLS.
Spec: scheme, host, port each on their own line; everything after the third newline is the request verbatim. Answer: status on the first line, then text ("0" and the raw response, or a non-zero code and the reason).
2 imports
import Base import ./wirespec.bend as Spec
Definitions
def wire.spec source · line 16 · raw
@secure:Bool -> @host:String -> @port:U32 -> @req:String -> String
the spec the effect reads (wirespec.bend)
def wire.talk source · line 20 · raw
@secure:Bool -> @host:String -> @port:U32 -> @req:String -> IO(String)
a request sent to a host and its whole answer read back
Effects (foreign code)
effect ezwire.talk source · line 11 · raw
@spec:String -> IO(String)
the exchange
foreign: src/effs/wire.c, src/effs/wire.js