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.

  1. data Request

    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).

  2. data RequestBuilder α

    http-streams Network.Http.Client

    The RequestBuilder monad allows you to abuse do-notation to conveniently setup a Request object.

  3. buildRequest :: Monad ν => RequestBuilder α -> ν Request

    http-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 "/"
    

  4. buildRequest1 :: RequestBuilder α -> Request

    http-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.

  5. getRequestHeaders :: Connection -> Request -> [(ByteString, ByteString)]

    http-streams Network.Http.Client

    Deprecated: use retrieveHeaders . getHeadersFull instead

  6. 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)
    

  7. headerRequired :: (FromJSON a, ProtectionIndicator p) => Text -> Maybe Object -> Maybe Object -> Parser (HeaderParam p a)

    jose Crypto.JOSE.Header

    Parse a required parameter that may be carried in either the protected or the unprotected header.

  8. headerRequiredProtected :: FromJSON a => Text -> Maybe Object -> Maybe Object -> Parser a

    jose Crypto.JOSE.Header

    Parse a required parameter that MUST be carried in the protected header.

  9. strictEqual :: JSVal -> JSVal -> JSM Bool

    jsaddle Language.Javascript.JSaddle.Native.Internal

    No documentation available.

  10. StrictEqual :: JSValueForSend -> JSValueForSend -> Command

    jsaddle Language.Javascript.JSaddle.Run

    No documentation available.

Page 372 of many | Previous | Next