feat(http): simplify URLSearchParams creation (#13338)

Closes #8858
This commit is contained in:
Dzmitry Shylovich
2016-12-10 02:38:29 +03:00
committed by Victor Berchet
parent aaf6e05f56
commit 90c223591f
5 changed files with 85 additions and 17 deletions

View File

@ -48,7 +48,9 @@ export abstract class XSRFStrategy { abstract configureRequest(req: Request): vo
export interface RequestOptionsArgs {
url?: string;
method?: string|RequestMethod;
search?: string|URLSearchParams;
/** @deprecated from 4.0.0. Use params instead. */
search?: string|URLSearchParams|{[key: string]: any | any[]};
params?: string|URLSearchParams|{[key: string]: any | any[]};
headers?: Headers;
body?: any;
withCredentials?: boolean;