http-interchange-0.3.2.1: Types and serialization for HTTP
Safe HaskellSafe-Inferred
LanguageGHC2021

Http.Response

Synopsis

Documentation

data Response Source #

The response status line and the response headers.

Constructors

Response 

Instances

Instances details
Show Response Source # 
Instance details

Defined in Http.Response

Eq Response Source # 
Instance details

Defined in Http.Response

data StatusLine Source #

Constructors

StatusLine 

Instances

Instances details
Show StatusLine Source # 
Instance details

Defined in Http.Response

Eq StatusLine Source # 
Instance details

Defined in Http.Response

decode :: Int -> Bytes -> Maybe Response Source #

Decode the response status line and the response headers. Fails if any extraneous input is present after the double CRLF sequence that ends the headers.