okapi-0.2.0.0: A bidirectional HTTP description language
Safe HaskellNone
LanguageGHC2024

Okapi.HTTP.Response

Documentation

headers :: SymTree Headers headers -> Response status ResponseHeaders body -> Response status headers body Source #

body :: SymTree Body body -> Response status headers (IO ByteString) -> Response status headers body Source #

parseResponseResult :: Response status headers body -> Response -> IO (Response status headers body) Source #

resultToValue :: Response status headers body -> Maybe (Response status headers body) Source #

resultToError :: Response status headers body -> Response status headers body Source #

parseResponse :: Response status headers body -> Response -> IO (Either (Response status headers body) (Response status headers body)) Source #

printResponse :: Response status headers body -> Response status headers body -> IO Response Source #