This library provides common interfaces of
(rfc http)
and
(rfc http2)
library.
Returns #t if the given object is an HTTP connection.
Returns #t if the given object is an HTTP/1.1 connection.
Creates an HTTP/1.1 connection with destination server server.
If the secure? is true value, then it uses TLS socket.
The HTTP/1.1 connection uses http-request defined in (rfc http)library to send an request.
Returns #t if the given object is an HTTP/2 connection.
Creates an HTTP/2 connection with destination server server.
If the secure? is true value, then it uses TLS socket.
The HTTP/1.1 connection uses http2-request defined in (rfc http2)library to send an request.
Returns #t if the given http-connection uses TLS socket to connect target server.
Returns destination server of the http-connection as string.
Returns destination server and port of the http-connection.
Opens given http-connection and returns it.
Closes given http-connection and returns it.
Sends HTTP request to the path path of destination server of http-connection with HTTP method methos.
The rest value of opt is passed to underling request sending procedure.
The procedure returns 3 values, HTTP status, HTTP header and content as bytevector.
Generic method of null http receiver.
The http-null-receiver forwards http-null-receiver defined
in (rfc http) for http1-connection and
http2-null-receiver defined
in (rfc http2) for http2-connection
Generic method of output port http receiver.
The http-oport-receiver forwards http-oport-receiver defined
in (rfc http) for http1-connection and
http2-data-receiver defined in (rfc http2) for
http2-connection
Generic method of http blob sender.
The http-blob-sender forwards http-blob-sender defined
in (rfc http) for http1-connection and
http2-data-sender defined in (rfc http2) for
http2-connection
Generic method of http string sender.
The http-string-sender forwards http-string-sender defined
in (rfc http) for http1-connection and
http2-data-sender defined in (rfc http2) with given
string converted by string->utf8 procedure defined
for http2-connection
Generic method of http null sender.
The http-null-sender forwards http-null-sender defined
in (rfc http) for http1-connection and does nothing
for http2-connection.