update
This commit is contained in:
@@ -195,6 +195,15 @@ export class SmartRequest<T = any> {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable or disable auto-drain for unconsumed response bodies (Node.js only)
|
||||
* Default is true to prevent socket hanging
|
||||
*/
|
||||
autoDrain(enabled: boolean): this {
|
||||
this._options.autoDrain = enabled;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the Accept header to indicate what content type is expected
|
||||
*/
|
||||
|
Reference in New Issue
Block a user