Lines Matching refs:Http2Session
146 ### Class: `Http2Session`
154 Instances of the `http2.Http2Session` class represent an active communications
158 Each `Http2Session` instance will exhibit slightly different behaviors
161 `Http2Session` is operating. On the server side, user code should rarely
162 have occasion to work with the `Http2Session` object directly, with most
166 User code will not create `Http2Session` instances directly. Server-side
167 `Http2Session` instances are created by the `Http2Server` instance when a
168 new HTTP/2 connection is received. Client-side `Http2Session` instances are
171 #### `Http2Session` and sockets argument
173 Every `Http2Session` instance is associated with exactly one [`net.Socket`][] or
175 `Http2Session` are destroyed, both will be destroyed.
179 or write data to a `Socket` instance bound to a `Http2Session`. Doing so can
183 Once a `Socket` has been bound to an `Http2Session`, user code should rely
184 solely on the API of the `Http2Session`.
192 The `'close'` event is emitted once the `Http2Session` has been destroyed. Its
201 * `session` {Http2Session}
204 The `'connect'` event is emitted once the `Http2Session` has been successfully
218 an `Http2Session`.
238 event is not associated with a stream, the `Http2Session` will be shut down
255 The `Http2Session` instance will be shut down automatically when the `'goaway'`
371 for this `Http2Session`, the `'timeout'` event is emitted if there is no
372 activity on the `Http2Session` after the configured number of milliseconds.
388 Value will be `undefined` if the `Http2Session` is not yet connected to a
389 socket, `h2c` if the `Http2Session` is not connected to a `TLSSocket`, or
401 Gracefully closes the `Http2Session`, allowing any existing streams to
417 Will be `true` if this `Http2Session` instance has been closed, otherwise
428 Will be `true` if this `Http2Session` instance is still connecting, will be set
438 * `error` {Error} An `Error` object if the `Http2Session` is being destroyed
444 Immediately terminates the `Http2Session` and the associated `net.Socket` or
447 Once destroyed, the `Http2Session` will emit the `'close'` event. If `error`
452 `Http2Session`, those will also be destroyed.
462 Will be `true` if this `Http2Session` instance has been destroyed and must no
473 Value is `undefined` if the `Http2Session` session socket has not yet been
474 connected, `true` if the `Http2Session` is connected with a `TLSSocket`,
475 and `false` if the `Http2Session` is connected to any other kind of socket
490 `Http2Session`.
501 `Http2Session`. The local settings are local to _this_ `Http2Session` instance.
511 If the `Http2Session` is connected to a `TLSSocket`, the `originSet` property
512 will return an `Array` of origins for which the `Http2Session` may be
525 Indicates whether the `Http2Session` is currently waiting for acknowledgment of
581 Calls [`ref()`][`net.Socket.prototype.ref()`] on this `Http2Session`
593 `Http2Session`. The remote settings are set by the _connected_ HTTP/2 peer.
637 the `Http2Session` after `msecs` milliseconds. The given `callback` is
653 [`Http2Session` and Sockets][] for more information.
655 `setTimeout` method will be called on this `Http2Session`.
666 `Http2Session`.
670 flow control window size for the `Http2Session`.
674 next time a new `Http2Stream` is created by this `Http2Session`.
679 * `remoteWindowSize` {number} The number of bytes that this `Http2Session`
682 outbound queue for this `Http2Session`.
688 An object describing the current status of this `Http2Session`.
709 Updates the current local settings for this `Http2Session` and sends a new
729 `http2.constants.NGHTTP2_SESSION_SERVER` if this `Http2Session` instance is a
739 Calls [`unref()`][`net.Socket.prototype.unref()`] on this `Http2Session`
748 * Extends: {Http2Session}
875 * Extends: {Http2Session}
956 For HTTP/2 Client `Http2Session` instances only, the `http2session.request()`
1014 communications stream over an `Http2Session` instance. Any single `Http2Session`
1018 are created, managed, and provided to user code through the `Http2Session`
1059 may not be immediately ready for use if the parent `Http2Session` has not yet
1369 * {Http2Session}
1371 A reference to the `Http2Session` instance that owns this `Http2Stream`. The
1582 `Http2Stream` in the same `Http2Session`.
1987 The `'session'` event is emitted when a new `Http2Session` is created by the
2000 an `Http2Session` object associated with the `Http2Server`.
2015 an `Http2Session` associated with the server.
2017 See also [`Http2Session`'s `'stream'` event][].
2207 The `'session'` event is emitted when a new `Http2Session` is created by the
2220 an `Http2Session` object associated with the `Http2SecureServer`.
2235 an `Http2Session` associated with the server.
2237 See also [`Http2Session`'s `'stream'` event][].
2424 * `maxSessionMemory`{number} Sets the maximum memory that the `Http2Session`
2496 Returns a `net.Server` instance that creates and manages `Http2Session`
2561 frame on `Http2Session` startup.
2581 * `maxSessionMemory`{number} Sets the maximum memory that the `Http2Session`
2631 frame immediately following creation of a new server `Http2Session`.
2639 Returns a `tls.Server` instance that creates and manages `Http2Session`
2709 * `maxSessionMemory`{number} Sets the maximum memory that the `Http2Session`
2815 Returns an object containing the default settings for an `Http2Session`
2958 object that defines configuration settings for an `Http2Session` object.
2966 permitted on the `Http2Session` instances. **Default:** `true`.
2974 streams permitted on an `Http2Session`. There is no default value which
2976 concurrently at any given time in an `Http2Session`. The minimum value
2986 has been enabled for a given `Http2Session`, it cannot be disabled.
3002 the `Http2Stream`, `Http2Session` or HTTP/2 Server objects, depending on where
3006 reported via an `'error'` event on the `Http2Session` or HTTP/2 Server objects.
3010 event on the `Http2Stream`, `Http2Session` or HTTP/2 Server objects, depending
3475 `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See [`Http2Session` and Sockets][] for
3879 `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See [`Http2Session` and Sockets][] for
4093 metrics for each `Http2Session` and `Http2Stream` instance.
4101 if (entry.name === 'Http2Session') {
4102 // Entry contains statistics about the Http2Session
4113 `'Http2Stream'` or `'Http2Session'`.
4130 If `name` is equal to `Http2Session`, the `PerformanceEntry` will contain the
4133 * `bytesRead` {number} The number of bytes received for this `Http2Session`.
4134 * `bytesWritten` {number} The number of bytes sent for this `Http2Session`.
4136 `Http2Session`.
4137 * `framesSent` {number} The number of HTTP/2 frames sent by the `Http2Session`.
4139 open during the lifetime of the `Http2Session`.
4142 a `PING` frame has been sent on the `Http2Session`.
4146 the `Http2Session`.
4148 `Http2Session`.
4184 [`Http2Session` and Sockets]: #http2session-and-sockets
4185 [`Http2Session`'s `'stream'` event]: #event-stream