Scoop API

scoop:scoop.http:0.1.0

src/http2_settings_builder.scoop

Selected production source · src/http2_settings_builder.scoop

1package scoop.http
3public fun Http2Settings.copy(configure: Http2SettingsBuilder.() -> Unit = {}): Http2Settings {
4 val builder = Http2SettingsBuilder()
5 builder.headerTableSize = this.headerTableSize
6 builder.maxConcurrentStreams = this.maxConcurrentStreams
7 builder.initialWindowSize = this.initialWindowSize
8 builder.maxFrameSize = this.maxFrameSize
9 builder.maxHeaderListSize = this.maxHeaderListSize
10 builder.configure()
11 return builder.snapshot()
14public class Http2SettingsBuilder internal constructor() {
15 public var headerTableSize: UInt = 4096U
16 public var maxConcurrentStreams: UInt = 100U
17 public var initialWindowSize: UInt = 65535U
18 public var maxFrameSize: UInt = 16384U
19 public var maxHeaderListSize: UInt = 65536U
20 internal fun snapshot(): Http2Settings =
21 Http2Settings(
22 headerTableSize,
23 maxConcurrentStreams,
24 initialWindowSize,
25 maxFrameSize,
26 maxHeaderListSize
27 )