xmlhttprequest.d.ts 445 B

1234567891011121314151617
  1. export declare const XHR: any;
  2. export declare function createCookieJar(): CookieJar;
  3. interface Cookie {
  4. name: string;
  5. value: string;
  6. expires?: Date;
  7. }
  8. /**
  9. * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie
  10. */
  11. export declare function parse(setCookieString: string): Cookie;
  12. export declare class CookieJar {
  13. private cookies;
  14. parseCookies(xhr: any): void;
  15. addCookies(xhr: any): void;
  16. }
  17. export {};