HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

ModuleHTTP-4000.4.1Haskell98

Network.HTTP.HandleStream

A HandleStream-based version of Network.HTTP interface.

For more detailed information about what the individual exports do, please consult the documentation for Network.HTTP. Notice however that the functions here do not perform any kind of normalization prior to transmission (or receipt); you are responsible for doing any such yourself, or, if you prefer, just switch to using Network.HTTP function instead.

  • 7 values
  • PackageHTTP-4000.4.1
  • Exports7
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceHandleStream.hs
valuesendHTTP
  1. :: HStream ty
  2. => HandleStream ty
  3. -> Request ty
  4. -> IO (Result (Response ty))
#

sendHTTP hStream httpRequest transmits httpRequest over hStream, but does not alter the status of the connection, nor request it to be closed upon receiving the response.

valuesendHTTP_notify
  1. :: HStream ty
  2. => HandleStream ty
  3. -> Request ty
  4. -> IO ()
  5. -> IO (Result (Response ty))
#

sendHTTP_notify hStream httpRequest action behaves like sendHTTP, but lets you supply an IO action to execute once the request has been successfully transmitted over the connection. Useful when you want to set up tracing of request transmission and its performance.