parseRequest.d.ts 829 B

1234567891011121314151617
  1. /**
  2. * Parses body object based on mode of body and returns code snippet
  3. *
  4. * @param {Object} requestbody - json object for body of request
  5. * @param {String} indentString - string for indentation
  6. * @param {Boolean} trimBody - indicates whether to trim body fields or not
  7. * @param {String} contentType Content type of the body being sent
  8. */
  9. export function parseBody(requestbody: any, indentString: string, trimBody: boolean, contentType: string): string;
  10. /**
  11. * parses header of request object and returns code snippet of nodejs native to add header
  12. *
  13. * @param {Object} request - Postman SDK request object
  14. * @param {String} indentString - indentation required in code snippet
  15. * @returns {String} - code snippet of nodejs native to add header
  16. */
  17. export function parseHeader(request: any, indentString: string): string;