12345678910111213141516171819202122232425262728293031 |
- /**
- * Converts Postman sdk request object to java okhttp code snippet
- *
- * @module convert
- *
- * @param {Object} request - postman-SDK request object
- * @param {Object} options - Options to tweak code snippet generated in Java-OkHttp
- * @param {String} options.indentType - type for indentation eg: Space, Tab
- * @param {String} options.indentCount - number of spaces or tabs for indentation.
- * @param {Boolean} [options.includeBoilerplate] - indicates whether to include class definition in java
- * @param {Boolean} options.followRedirect - whether to enable followredirect
- * @param {Boolean} options.trimRequestBody - whether to trim fields in request body or not
- * @param {Number} options.requestTimeout : time in milli-seconds after which request will bail out
- * @param {Function} callback - callback function with parameters (error, snippet)
- */
- export function convert(request: any, options: {
- indentType: string;
- indentCount: string;
- includeBoilerplate: boolean;
- followRedirect: boolean;
- trimRequestBody: boolean;
- requestTimeout: number;
- }, callback: Function): any;
- /**
- * Used in order to get options for generation of Java okhattp code snippet (i.e. Include Boilerplate code)
- *
- * @module getOptions
- *
- * @returns {Array} Options specific to generation of Java okhattp code snippet
- */
- export function getOptions(): any[];
|