Skip to content
Cinch
← Net.Http API referenceSAMPLE LISTING
cinch-http / 0.3.0Net/Http.cinch

Declaration source.

This sample listing contains the declarations shown in the API reference. Package implementations will appear here when real package data is connected.

module Net.Http where
3-- A request method, URL, headers, and optional body.
4record Request
5
6-- A status code, response headers, and body bytes.
7record Response
8
9-- A connection, protocol, or timeout failure.
10data HttpError
12-- Read the numerical HTTP status code.
13status-code :: Response -> Nat