Hoogle Search
Within LTS Haskell 24.52 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
http-streams Network.Http.Client A description of the request that will be sent to the server. Note unlike other HTTP libraries, the request body is not a part of this object; that will be streamed out by you when actually sending the request with sendRequest. Request has a useful Show instance that will output the request line and headers (as it will be sent over the wire but with the \r characters stripped) which can be handy for debugging. Note that the actual Host: header is not set until the request is sent, so you will not see it in the Show instance (unless you call setHostname to override the value inherited from the Connection).
-
http-streams Network.Http.Client The RequestBuilder monad allows you to abuse do-notation to conveniently setup a Request object.
buildRequest :: Monad ν => RequestBuilder α -> ν Requesthttp-streams Network.Http.Client Run a RequestBuilder from within a monadic action. Older versions of this library had buildRequest in IO; there's no longer a need for that, but this code path will continue to work for existing users.
q <- buildRequest $ do http GET "/"
buildRequest1 :: RequestBuilder α -> Requesthttp-streams Network.Http.Client Run a RequestBuilder, yielding a Request object you can use on the given connection.
let q = buildRequest1 $ do http POST "/api/v1/messages" setContentType "application/json" setHostname "clue.example.com" 80 setAccept "text/html" setHeader "X-WhoDoneIt" "The Butler"
Obviously it's up to you to later actually send JSON data.getRequestHeaders :: Connection -> Request -> [(ByteString, ByteString)]http-streams Network.Http.Client Deprecated: use retrieveHeaders . getHeadersFull instead
sendRequest :: Connection -> Request -> (OutputStream Builder -> IO α) -> IO αhttp-streams Network.Http.Client Having composed a Request object with the headers and metadata for this connection, you can now send the request to the server, along with the entity body, if there is one. For the rather common case of HTTP requests like GET that don't send data, use emptyBody as the output stream:
sendRequest c q emptyBody
For PUT and POST requests, you can use fileBody or inputStreamBody to send content to the server, or you can work with the io-streams API directly:sendRequest c q (\o -> Streams.write (Just (Builder.fromString "Hello World\n")) o)
-
jose Crypto.JOSE.Header Parse a required parameter that may be carried in either the protected or the unprotected header.
headerRequiredProtected :: FromJSON a => Text -> Maybe Object -> Maybe Object -> Parser ajose Crypto.JOSE.Header Parse a required parameter that MUST be carried in the protected header.
strictEqual :: JSVal -> JSVal -> JSM Booljsaddle Language.Javascript.JSaddle.Native.Internal No documentation available.
StrictEqual :: JSValueForSend -> JSValueForSend -> Commandjsaddle Language.Javascript.JSaddle.Run No documentation available.