mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
[SuperAgent] Add trustLocalhost (#42337)
* Add trustLocalhost * Rename param to enabled Co-Authored-By: Adam Haglund <adam.lj.haglund@gmail.com> Co-authored-by: Adam Haglund <adam.lj.haglund@gmail.com>
This commit is contained in:
co-authored by
Adam Haglund
parent
ceecc45f35
commit
f29cd16d7e
Vendored
+1
@@ -163,6 +163,7 @@ declare namespace request {
|
||||
set(field: string, val: string): this;
|
||||
set(field: 'Cookie', val: string[]): this;
|
||||
timeout(ms: number | { deadline?: number, response?: number }): this;
|
||||
trustLocalhost(enabled?: boolean): this;
|
||||
type(val: string): this;
|
||||
unset(field: string): this;
|
||||
use(fn: Plugin): this;
|
||||
|
||||
Reference in New Issue
Block a user