| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Network.HTTP2.TLS.Client
Contents
Description
Running an HTTP/2 client over TLS.
Runners
run :: HostName -> PortNumber -> Client a -> IO a Source #
Running an HTTP/2 client over TLS (over TCP).
Either a host name e.g., "haskell.org" or a numeric host
address string consisting of a dotted decimal IPv4 address or an
IPv6 address e.g., "192.168.0.1".
data PortNumber #
Port number.
Use the Num instance (i.e. use a literal) to create a
PortNumber value.
>>>1 :: PortNumber1>>>read "1" :: PortNumber1>>>show (12345 :: PortNumber)"12345">>>50000 < (51000 :: PortNumber)True>>>50000 < (52000 :: PortNumber)True>>>50000 + (10000 :: PortNumber)60000
Instances
Arguments
| :: HostName | |
| -> PortNumber | |
| -> ByteString | ALPN |
| -> (Context -> IO a) | |
| -> IO a |
Running a TLS client.