Hoogle Search

Within LTS Haskell 24.67 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. requestVersion :: Request -> HttpVersion

    http-client Network.HTTP.Client.Internal

    HTTP version to send to server. Default: HTTP 1.1 Since 0.4.3

  2. responseOriginalRequest :: Response body -> Request

    http-client Network.HTTP.Client.Internal

    Holds original Request related to this Response (with an empty body). This field is intentionally not exported directly, but made available via getOriginalRequest instead. Since 0.7.8

  3. setRequestCheckStatus :: Request -> Request

    http-client Network.HTTP.Client.Internal

    Modify the request so that non-2XX status codes generate a runtime StatusCodeException, by using throwErrorStatusCodes

  4. setRequestIgnoreStatus :: Request -> Request

    http-client Network.HTTP.Client.Internal

    Modify the request so that non-2XX status codes do not generate a runtime StatusCodeException.

  5. partFileRequestBody :: forall (m :: Type -> Type) . Applicative m => Text -> FilePath -> RequestBody -> PartM m

    http-client Network.HTTP.Client.MultipartFormData

    Construct a Part from form name, filepath and a RequestBody

    partFileRequestBody "who_calls" "caller.json" $ RequestBodyBS "{\"caller\":\"Jason J Jason\"}"
    
    -- empty upload form
    partFileRequestBody "file" mempty mempty
    
    The Part does not have a content type associated with it.

  6. partFileRequestBodyM :: Text -> FilePath -> m RequestBody -> PartM m

    http-client Network.HTTP.Client.MultipartFormData

    Construct a Part from action returning the RequestBody

    partFileRequestBodyM "cat_photo" "haskell-the-cat.jpg" $ do
    size <- fromInteger <$> withBinaryFile "haskell-the-cat.jpg" ReadMode hFileSize
    return $ RequestBodySource size $ CB.sourceFile "haskell-the-cat.jpg" $= CL.map fromByteString
    
    The Part does not have a content type associated with it.

  7. data Request

    wai Network.Wai

    Information on the request sent by the client. This abstracts away the details of the underlying implementation.

  8. data RequestBodyLength

    wai Network.Wai

    The size of the request body. In the case of chunked bodies, the size will not be known.

  9. consumeRequestBodyLazy :: Request -> IO ByteString

    wai Network.Wai

    Synonym for lazyRequestBody. This function name is meant to signal the non-idempotent nature of lazyRequestBody.

  10. consumeRequestBodyStrict :: Request -> IO ByteString

    wai Network.Wai

    Synonym for strictRequestBody. This function name is meant to signal the non-idempotent nature of strictRequestBody.

Page 161 of many | Previous | Next