Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ There are some major differences between this library and the [httpsnippet](http
- Does not do any HAR schema validation. It's just assumed that the HAR you're supplying to the library is already valid.
- The main `HTTPSnippet` export contains an `options` argument for an `harIsAlreadyEncoded` option for disabling [escaping](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent) of cookies and query strings in URLs.
- We added this because all HARs that we interact with already have this data escaped and this option prevents them from being double encoded, thus corrupting the data.
- We treat a `queryString` entry with an empty `name`, or a URL query segment with no `=`, as a raw query segment and write it with no `name=` part. OpenAPI 3.2 serializes an `in: querystring` parameter with a media type like `application/json` to that form (`?%7B%22flag%22%3Anull%7D`). You list the same segment on `url` and `queryString`, and we write it once. You read named parameters from `queryObj` and raw segments from `rawQuery`.
- Does not support the `insecureSkipVerify` option on `go:native`, `node:native`, `ruby:native`, and `shell:curl` as we don't want snippets generated for our users to bypass SSL certificate verification.
- Includes a full plugin system, `#addClientPlugin`, for quick installation of a target client.
- Node
Expand All @@ -203,6 +204,9 @@ There are some major differences between this library and the [httpsnippet](http
- Does not ship this client due to its incompatibility with being able to support file uploads.
- `requests`
- Does not provide query string parameters in a `params` argument due to complexities with query encoding.
- R
- `httr`
- Query parameters that appear only on the request URL are included in the snippet. A parameter named `key` is a normal parameter.

## License

Expand Down
Loading
Loading