12345678910111213141516171819202122 |
- /**
- * Parses request object and returns csharp-restsharp code snippet for adding request body
- *
- * @param {Object} request - JSON object representing body of request
- * @param {Boolean} trimFields - indicates whether to trim fields of body
- * @returns {String} code snippet of csharp-restsharp parsed from request object
- */
- export function parseBody(request: any, trimFields: boolean): string;
- /**
- * Parses header in Postman-SDK request and returns code snippet of csharp-restsharp for adding headers
- *
- * @param {Object} requestJson - Postman SDK request object
- * @returns {String} code snippet for adding headers in csharp-restsharp
- */
- export function parseHeader(requestJson: any): string;
- /**
- * Returns content-type of request body if available else returns text/plain as default
- *
- * @param {Object} request - Postman SDK request object
- * @returns {String} content-type of request body
- */
- export function parseContentType(request: any): string;
|