OptionalanonymousOptionalcontextCan be an object and will be assigned to context of the response object.
OptionalheadersSome special headers are also allowed:
CookieHostOriginRefererUser-AgentOptionalonabortOptionalonerrorOptionalonloadOptionalonloadendOptionalonloadstartOptionalonprogressOptionalonreadystatechangeOptionalontimeoutOptionalpasswordPassword for authentication.
OptionaltimeoutTime to wait for the request, none by default.
URL relative to current page is also allowed.
OptionaluserUser for authentication.
When set to
true, no cookie will be sent with the request and the response cookies will be ignored. The default value isfalse.