request.d.ts 879 B

123456789101112131415161718192021222324252627282930313233
  1. export var Request: any;
  2. export namespace Request {
  3. export type definition = {
  4. /**
  5. * The URL of the request. This can be a {@link Url.definition} or a string.
  6. */
  7. url: string | ((options: any, ...args: any[]) => void);
  8. /**
  9. * The request method, e.g: "GET" or "POST".
  10. */
  11. method: string;
  12. /**
  13. * The headers that should be sent as a part of this request.
  14. */
  15. header: any[];
  16. /**
  17. * The request body definition.
  18. */
  19. body: any;
  20. /**
  21. * The authentication/signing information for this request.
  22. */
  23. auth: any;
  24. /**
  25. * The proxy information for this request.
  26. */
  27. proxy: any;
  28. /**
  29. * The certificate information for this request.
  30. */
  31. certificate: any;
  32. };
  33. }