Documentation

Hale.HttpClient.Network.HTTP.Client.Request

Serialize an HTTP/1.1 request to a ByteArray.

Automatically adds:

  • Host header (from Request.host and Request.port)
  • Content-Length header when body is present

$$\text{serializeRequest} : \text{Request} \to \text{ByteArray}$$

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    Send a serialized request over a connection. $$\text{sendRequest} : \text{Connection} \to \text{Request} \to \text{IO Unit}$$

    Equations
    Instances For