http2-client-0.8.0.2: A native HTTP2 client library.

Safe HaskellNone
LanguageHaskell2010

Network.HTTP2.Client.RawConnection

Synopsis

Documentation

data RawHttp2Connection Source #

Constructors

RawHttp2Connection 

Fields

newRawHttp2Connection Source #

Arguments

:: HostName

Server's hostname.

-> PortNumber

Server's port to connect to.

-> Maybe ClientParams

TLS parameters. The onSuggestALPN hook is overwritten to always return ["h2", "h2-17"].

-> IO RawHttp2Connection 

Initiates a RawHttp2Connection with a server.

The current code does not handle closing the connexion, yikes.

newRawHttp2ConnectionSocket Source #

Arguments

:: Socket

A connected socket.

-> Maybe ClientParams

TLS parameters. The onSuggestALPN hook is overwritten to always return ["h2", "h2-17"].

-> IO RawHttp2Connection 

Initiates a RawHttp2Connection with a server over a connected socket.

The current code does not handle closing the connexion, yikes. Since 0.8.0.2