Node.Http2.Session
- Package
- purescript-node-http2
- Repository
- purescript-node/purescript-node-http2
#toEventEmitter Source
toEventEmitter :: forall endpoint. Http2Session endpoint -> EventEmitter
#closeH Source
closeH :: forall endpoint. EventHandle0 (Http2Session endpoint)
#connectH Source
connectH :: forall endpoint. EventHandle2 (Http2Session endpoint) (Http2Session endpoint) (Socket TCP)
#errorH Source
errorH :: forall endpoint. EventHandle1 (Http2Session endpoint) Error
#frameErrorH Source
frameErrorH :: forall endpoint. EventHandle3 (Http2Session endpoint) FrameType ErrorCode StreamId
#localSettingsH Source
localSettingsH :: forall endpoint. EventHandle1 (Http2Session endpoint) Settings
#pingH Source
pingH :: forall endpoint. EventHandle1 (Http2Session endpoint) Buffer
#remoteSettingsH Source
remoteSettingsH :: forall endpoint. EventHandle1 (Http2Session endpoint) Settings
#streamH Source
streamH :: forall endpoint. EventHandle4 (Http2Session endpoint) (Http2Stream endpoint) Headers BitwiseFlag (Array String)
#timeoutH Source
timeoutH :: forall endpoint. EventHandle0 (Http2Session endpoint)
#alpnProtocol Source
alpnProtocol :: forall endpoint. Http2Session endpoint -> Effect (Maybe String)
#connecting Source
connecting :: forall endpoint. Http2Session endpoint -> Effect Boolean
#destroyWithError Source
destroyWithError :: forall endpoint. Http2Session endpoint -> Error -> Effect Unit
#destroyWithCode Source
destroyWithCode :: forall endpoint. Http2Session endpoint -> ErrorCode -> Effect Unit
#destroyWithErrorCode Source
destroyWithErrorCode :: forall endpoint. Http2Session endpoint -> Error -> ErrorCode -> Effect Unit
#goAwayCode Source
goAwayCode :: forall endpoint. Http2Session endpoint -> ErrorCode -> Effect Unit
#goAwayCodeLastStreamId Source
goAwayCodeLastStreamId :: forall endpoint. Http2Session endpoint -> ErrorCode -> StreamId -> Effect Unit
#goAwayCodeLastStreamIdData Source
goAwayCodeLastStreamIdData :: forall endpoint. Http2Session endpoint -> ErrorCode -> StreamId -> Buffer -> Effect Unit
#localSettings Source
localSettings :: forall endpoint. Http2Session endpoint -> Effect Settings
#pendingSettingsAck Source
pendingSettingsAck :: forall endpoint. Http2Session endpoint -> Effect Boolean
#ping Source
ping :: forall endpoint. Http2Session endpoint -> (Maybe Error -> Milliseconds -> Buffer -> Effect Unit) -> Effect Boolean
#pingPayload Source
pingPayload :: forall endpoint. Http2Session endpoint -> Buffer -> (Maybe Error -> Milliseconds -> Buffer -> Effect Unit) -> Effect Boolean
#remoteSettings Source
remoteSettings :: forall endpoint. Http2Session endpoint -> Effect Settings
#setLocalWindowSize Source
setLocalWindowSize :: forall endpoint. Http2Session endpoint -> Int -> Effect Unit
#setTimeout Source
setTimeout :: forall endpoint. Http2Session endpoint -> Milliseconds -> Effect Unit -> Effect Unit
#Http2SessionState Source
type Http2SessionState = { deflateDynamicTableSize :: Int, effectiveLocalWindowSize :: Int, effectiveRecvDataLength :: Int, inflateDynamicTableSize :: Int, lastProcStreamID :: Int, localWindowSize :: Int, nextStreamID :: Int, outboundQueueSize :: Int, remoteWindowSize :: Int }
effectiveLocalWindowSize
<number> The current local (receive) flow control window size for the Http2Session peer.
effectiveRecvDataLength
<number> The current number of bytes that have been received since the last flow control WINDOW_UPDATE.
nextStreamID
<number> The numeric identifier to be used the next time a new Http2Stream is created by this Http2Session peer.
localWindowSize
<number> The number of bytes that the remote peer can send without receiving a WINDOW_UPDATE.
lastProcStreamID
<number> The numeric id of the Http2Stream for which a HEADERS or DATA frame was most recently received.
remoteWindowSize
<number> The number of bytes that this Http2Session peer may send without receiving a WINDOW_UPDATE.
outboundQueueSize
<number> The number of frames currently within the outbound queue for this Http2Session peer.
deflateDynamicTableSize
<number> The current size in bytes of the outbound header compression state table.
inflateDynamicTableSize
<number> The current size in bytes of the inbound header compression state table.
#state Source
state :: forall endpoint. Http2Session endpoint -> Effect Http2SessionState
#type_ Source
type_ :: forall endpoint. Http2Session endpoint -> Int
#altsvcStreamId Source
altsvcStreamId :: Http2Session Server -> String -> Int -> Effect Unit
#altsvcOrigin Source
altsvcOrigin :: Http2Session Server -> String -> String -> Effect Unit
#RequestOptions Source
type RequestOptions = { endStream :: Boolean, exclusive :: Boolean, parent :: Number, waitForTrailers :: Boolean, weight :: Number }
endStream
<boolean> true if the Http2Stream writable side should be closed initially, such as when sending a GET request that should not expect a payload body.
exclusive
<boolean> When true and parent identifies a parent Stream, the created stream is made the sole direct dependency of the parent, with all other existing dependents made a dependent of the newly created stream. Default: false.
parent
<number> Specifies the numeric identifier of a stream the newly created stream is dependent on.
weight
<number> Specifies the relative dependency of a stream in relation to other streams with the same parent. The value is a number between 1 and 256 (inclusive).
waitForTrailers
<boolean> When true, the Http2Stream will emit the 'wantTrailers' event after the final DATA frame has been sent.
Note: signal
<AbortSignal> option is intentionally not supported
#request Source
request :: Http2Session Client -> Headers -> Effect (Http2Stream Client)
#request' Source
request' :: Http2Session Client -> Headers -> RequestOptions -> Effect (Http2Stream Client)