[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:
Igor Morozov
2020-02-13 17:46:26 -08:00
committed by GitHub
co-authored by Adam Haglund
parent ceecc45f35
commit f29cd16d7e
+1
View File
@@ -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;