This repository was archived by the owner on Jul 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
app/current/src/main/scala/io/scalajs/nodejs Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ trait RequestOptions extends js.Object {
4343 var secureProtocol : js.UndefOr [String ] = js.undefined
4444 var sessionIdContext : js.UndefOr [String ] = js.undefined
4545 var insecureHTTPParser : js.UndefOr [Int ] = js.undefined
46+ var highWaterMark : js.UndefOr [Int ] = js.undefined
4647
4748 @ enableIf(io.scalajs.nodejs.internal.CompilerSwitches .gteNodeJs14)
4849 var maxHeaderSize : js.UndefOr [Int ] = js.undefined
Original file line number Diff line number Diff line change 11package io .scalajs .nodejs
22
3+ import com .thoughtworks .enableIf
4+ import io .scalajs .nodejs .buffer .Buffer
35import io .scalajs .nodejs .http .{RequestOptions , ServerResponse }
46import io .scalajs .util .PromiseHelper ._
57import io .scalajs .nodejs .url .URL
@@ -54,4 +56,9 @@ package object https {
5456 promiseCallback1[ServerResponse ](https.request(url, options, _))
5557 }
5658 }
59+
60+ implicit final class AgentExtensions [T <: Agent ](private val instance : T ) extends AnyVal {
61+ @ enableIf(io.scalajs.nodejs.internal.CompilerSwitches .gteNodeJs12)
62+ @ inline def onKeylog (handler : (Buffer , tls.TLSSocket ) => Any ): T = instance.on(" keylog" , handler)
63+ }
5764}
You can’t perform that action at this time.
0 commit comments