diff options
author | 2023-05-04 16:09:45 -0700 | |
---|---|---|
committer | 2023-05-04 16:09:45 -0700 | |
commit | c43c1b50fffece35c1507f18758df6b450cc57c9 (patch) | |
tree | 7c1e33acaf2cfd3e8798484b55fd791e829dd651 /src/bun.js | |
parent | 1574ac78966f5e3075f91d391d367df44ceb1003 (diff) | |
download | bun-c43c1b50fffece35c1507f18758df6b450cc57c9.tar.gz bun-c43c1b50fffece35c1507f18758df6b450cc57c9.tar.zst bun-c43c1b50fffece35c1507f18758df6b450cc57c9.zip |
Add no-op for ClientRequest.{setNoDelay,setTimeout}
Diffstat (limited to 'src/bun.js')
-rw-r--r-- | src/bun.js/http.exports.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bun.js/http.exports.js b/src/bun.js/http.exports.js index 09bc9102e..137906a5d 100644 --- a/src/bun.js/http.exports.js +++ b/src/bun.js/http.exports.js @@ -1254,6 +1254,15 @@ export class ClientRequest extends OutgoingMessage { setSocketKeepAlive(enable = true, initialDelay = 0) { __DEBUG__ && debug(`${NODE_HTTP_WARNING}\n`, "WARN: ClientRequest.setSocketKeepAlive is a no-op"); } + + setNoDelay(noDelay = true) { + __DEBUG__ && debug(`${NODE_HTTP_WARNING}\n`, "WARN: ClientRequest.setNoDelay is a no-op"); + } + + setTimeout(timeout, callback) { + __DEBUG__ && debug(`${NODE_HTTP_WARNING}\n`, "WARN: ClientRequest.setTimeout is a no-op"); + return this; + } } function urlToHttpOptions(url) { |