• Home
  • Raw
  • Download

Lines Matching refs:Http2Session

103 ### Class: `Http2Session`
110 Instances of the `http2.Http2Session` class represent an active communications
114 Each `Http2Session` instance will exhibit slightly different behaviors
117 `Http2Session` is operating. On the server side, user code should rarely
118 have occasion to work with the `Http2Session` object directly, with most
122 User code will not create `Http2Session` instances directly. Server-side
123 `Http2Session` instances are created by the `Http2Server` instance when a
124 new HTTP/2 connection is received. Client-side `Http2Session` instances are
127 #### `Http2Session` and sockets argument
129 Every `Http2Session` instance is associated with exactly one [`net.Socket`][] or
131 `Http2Session` are destroyed, both will be destroyed.
135 or write data to a `Socket` instance bound to a `Http2Session`. Doing so can
139 Once a `Socket` has been bound to an `Http2Session`, user code should rely
140 solely on the API of the `Http2Session`.
147 The `'close'` event is emitted once the `Http2Session` has been destroyed. Its
155 * `session` {Http2Session}
158 The `'connect'` event is emitted once the `Http2Session` has been successfully
171 an `Http2Session`.
190 event is not associated with a stream, the `Http2Session` will be shut down
206 The `Http2Session` instance will be shut down automatically when the `'goaway'`
317 for this `Http2Session`, the `'timeout'` event is emitted if there is no
318 activity on the `Http2Session` after the configured number of milliseconds.
333 Value will be `undefined` if the `Http2Session` is not yet connected to a
334 socket, `h2c` if the `Http2Session` is not connected to a `TLSSocket`, or
345 Gracefully closes the `Http2Session`, allowing any existing streams to
360 Will be `true` if this `Http2Session` instance has been closed, otherwise
370 Will be `true` if this `Http2Session` instance is still connecting, will be set
379 * `error` {Error} An `Error` object if the `Http2Session` is being destroyed
385 Immediately terminates the `Http2Session` and the associated `net.Socket` or
388 Once destroyed, the `Http2Session` will emit the `'close'` event. If `error`
393 `Http2Session`, those will also be destroyed.
402 Will be `true` if this `Http2Session` instance has been destroyed and must no
412 Value is `undefined` if the `Http2Session` session socket has not yet been
413 connected, `true` if the `Http2Session` is connected with a `TLSSocket`,
414 and `false` if the `Http2Session` is connected to any other kind of socket
428 `Http2Session`.
438 `Http2Session`. The local settings are local to *this* `Http2Session` instance.
447 If the `Http2Session` is connected to a `TLSSocket`, the `originSet` property
448 will return an `Array` of origins for which the `Http2Session` may be
460 Indicates whether the `Http2Session` is currently waiting for acknowledgment of
508 Calls [`ref()`][`net.Socket.prototype.ref()`] on this `Http2Session`
519 `Http2Session`. The remote settings are set by the *connected* HTTP/2 peer.
553 the `Http2Session` after `msecs` milliseconds. The given `callback` is
568 [`Http2Session` and Sockets][] for more information.
570 `setTimeout` method will be called on this `Http2Session`.
580 `Http2Session`.
584 flow control window size for the `Http2Session`.
588 next time a new `Http2Stream` is created by this `Http2Session`.
593 * `remoteWindowSize` {number} The number of bytes that this `Http2Session`
596 outbound queue for this `Http2Session`.
602 An object describing the current status of this `Http2Session`.
616 Updates the current local settings for this `Http2Session` and sends a new
635 `http2.constants.NGHTTP2_SESSION_SERVER` if this `Http2Session` instance is a
644 Calls [`unref()`][`net.Socket.prototype.unref()`] on this `Http2Session`
652 * Extends: {Http2Session}
776 * Extends: {Http2Session}
853 For HTTP/2 Client `Http2Session` instances only, the `http2session.request()`
904 communications stream over an `Http2Session` instance. Any single `Http2Session`
908 are created, managed, and provided to user code through the `Http2Session`
950 may not be immediately ready for use if the parent `Http2Session` has not yet
1232 * {Http2Session}
1234 A reference to the `Http2Session` instance that owns this `Http2Stream`. The
1417 `Http2Stream` in the same `Http2Session`.
1799 The `'session'` event is emitted when a new `Http2Session` is created by the
1808 an `Http2Session` object associated with the `Http2Server`.
1822 an `Http2Session` associated with the server.
1824 See also [`Http2Session`'s `'stream'` event][].
1995 The `'session'` event is emitted when a new `Http2Session` is created by the
2004 an `Http2Session` object associated with the `Http2SecureServer`.
2018 an `Http2Session` associated with the server.
2020 See also [`Http2Session`'s `'stream'` event][].
2186 * `maxSessionMemory`{number} Sets the maximum memory that the `Http2Session`
2255 Returns a `net.Server` instance that creates and manages `Http2Session`
2315 frame on `Http2Session` startup.
2335 * `maxSessionMemory`{number} Sets the maximum memory that the `Http2Session`
2385 frame immediately following creation of a new server `Http2Session`.
2393 Returns a `tls.Server` instance that creates and manages `Http2Session`
2458 * `maxSessionMemory`{number} Sets the maximum memory that the `Http2Session`
2562 Returns an object containing the default settings for an `Http2Session`
2698 object that defines configuration settings for an `Http2Session` object.
2706 permitted on the `Http2Session` instances. **Default:** `true`.
2714 streams permitted on an `Http2Session`. There is no default value which
2716 concurrently at any given time in an `Http2Session`. The minimum value
2726 has been enabled for a given `Http2Session`, it cannot be disabled.
2742 the `Http2Stream`, `Http2Session` or HTTP/2 Server objects, depending on where
2746 reported via an `'error'` event on the `Http2Session` or HTTP/2 Server objects.
2750 event on the `Http2Stream`, `Http2Session` or HTTP/2 Server objects, depending
3197 `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See [`Http2Session` and Sockets][] for
3563 `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See [`Http2Session` and Sockets][] for
3740 metrics for each `Http2Session` and `Http2Stream` instance.
3748 if (entry.name === 'Http2Session') {
3749 // Entry contains statistics about the Http2Session
3760 `'Http2Stream'` or `'Http2Session'`.
3777 If `name` is equal to `Http2Session`, the `PerformanceEntry` will contain the
3780 * `bytesRead` {number} The number of bytes received for this `Http2Session`.
3781 * `bytesWritten` {number} The number of bytes sent for this `Http2Session`.
3783 `Http2Session`.
3784 * `framesSent` {number} The number of HTTP/2 frames sent by the `Http2Session`.
3786 open during the lifetime of the `Http2Session`.
3789 a `PING` frame has been sent on the `Http2Session`.
3793 the `Http2Session`.
3795 `Http2Session`.
3819 [`Http2Session` and Sockets]: #http2_http2session_and_sockets
3820 [`Http2Session`'s `'stream'` event]: #http2_event_stream