Module

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

#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)

#close Source

close :: forall endpoint. Http2Session endpoint -> Effect Unit

#closed Source

closed :: forall endpoint. Http2Session endpoint -> Effect Boolean

#connecting Source

connecting :: forall endpoint. Http2Session endpoint -> Effect Boolean

#destroy Source

destroy :: forall endpoint. Http2Session endpoint -> Effect Unit

#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

#destroyed Source

destroyed :: forall endpoint. Http2Session endpoint -> Effect Boolean

#encrypted Source

encrypted :: forall endpoint. Http2Session endpoint -> Effect (Maybe Boolean)

#goAway Source

goAway :: forall endpoint. Http2Session endpoint -> 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

#localSettings Source

localSettings :: forall endpoint. Http2Session endpoint -> Effect Settings

#originSet Source

originSet :: forall endpoint. Http2Session endpoint -> Array String

#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

#ref Source

ref :: forall endpoint. Http2Session endpoint -> Effect (Socket TCP)

#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

#settings Source

settings :: forall endpoint. Http2Session endpoint -> Settings -> (Maybe Error -> Settings -> Int -> Effect Unit) -> Effect Unit

#socket Source

socket :: forall endpoint. Http2Session endpoint -> Effect (Socket TCP)

#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

#unref Source

unref :: forall endpoint. Http2Session endpoint -> Effect (Socket TCP)

#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