followRedirect is documented to also accept a function

This commit is contained in:
Kenneth Pedersen 2015-10-17 22:41:25 +02:00
parent af5b8275d1
commit c86e7bad40

View File

@ -79,7 +79,7 @@ declare module 'request' {
method?: string;
headers?: Headers;
body?: any;
followRedirect?: boolean;
followRedirect?: boolean|((response: http.IncomingMessage) => boolean);
followAllRedirects?: boolean;
maxRedirects?: number;
encoding?: string;