Hoogle Search

Within LTS Haskell 24.50 (ghc-9.10.3)

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

  1. requestHeaders :: Request -> RequestHeaders

    http-client Network.HTTP.Client.Internal

    Custom HTTP request headers The Content-Length and Transfer-Encoding headers are set automatically by this module, and shall not be added to requestHeaders. If not provided by the user, Host will automatically be set based on the host and port fields. Moreover, the Accept-Encoding header is set implicitly to gzip for convenience by default. This behaviour can be overridden if needed, by setting the header explicitly to a different value. In order to omit the Accept-Header altogether, set it to the empty string "". If you need an empty Accept-Header (i.e. requesting the identity encoding), set it to a non-empty white-space string, e.g. " ". See RFC 2616 section 14.3 for details about the semantics of the Accept-Header field. If you request a content-encoding not supported by this module, you will have to decode it yourself (see also the decompress field). Note: Multiple header fields with the same field-name will result in multiple header fields being sent and therefore it's the responsibility of the client code to ensure that the rules from RFC 2616 section 4.2 are honoured. Since 0.1.0

  2. requestManagerOverride :: Request -> Maybe Manager

    http-client Network.HTTP.Client.Internal

    A Manager value that should override whatever Manager value was passed in to the HTTP request function manually. This is useful when dealing with implicit global managers, such as in Network.HTTP.Simple

  3. requestVersion :: Request -> HttpVersion

    http-client Network.HTTP.Client.Internal

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

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

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

  6. setRequestIgnoreStatus :: Request -> Request

    http-client Network.HTTP.Client.Internal

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

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

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

  9. getSeqOf :: Get a -> Get (Seq a)

    cereal Data.Serialize.Get

    Get a sequence in the following format: Word64 (big endian format) element 1 ... element n

  10. putSeqOf :: Putter a -> Putter (Seq a)

    cereal Data.Serialize.Put

    No documentation available.

Page 164 of many | Previous | Next