You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6310766
Browse filesBrowse the repository at this point in the historyBrowse files
At the heart of this module is the [HAR Request object](http://www.softwareishard.com/blog/har-12-spec/#request) as the http request description format, please review some of the sample JSON HAR Request objects in [test fixtures](/test/fixtures/requests), or read the [HAR Docs](http://www.softwareishard.com/blog/har-12-spec/#request) for more details.
175
131
176
-
### Output Targets
177
-
178
-
output [targets](/src/targets) are simple modules that expose a constructor *(which handles the transformation)* and a meta `info` property.
179
-
180
-
```js
181
-
module.exports=function (opts) {
182
-
// optionally process `opts` object for target specific configuration
183
-
//
184
-
// process `this.source` object
185
-
//
186
-
// return processed output as string
187
-
};
188
-
189
-
module.exports.info= {
190
-
key:'curl',
191
-
title:'cURL',
192
-
link:'http://curl.haxx.se/',
193
-
description:'curl is a command line tool and library for transferring data with URL syntax',
|`errorChecking`|`false`| add error checking for request, response and body |
258
-
|`printBody`|`true`| include code to print the body as a string |
259
-
|`timeout`|`-1`| sets a request timeout in seconds (requires go 1.3+) |
260
-
261
132
## Bugs and feature requests
262
133
263
134
Have a bug or a feature request? Please first read the [issue guidelines](CONTRIBUTING.md#using-the-issue-tracker) and search for existing and closed issues. If your problem or idea is not addressed yet, [please open a new issue](/issues).
@@ -288,7 +159,7 @@ For more information on SemVer, please visit <http://semver.org/>.
0 commit comments