8000 [Plugin] Add documentation for the VCR plugin by GaryPEGEOT · Pull Request #262 · php-http/documentation · GitHub
[go: up one dir, main page]

Skip to content

[Plugin] Add documentation for the VCR plugin #262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 2, 2019
Merged
Changes from 1 commit
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
Prev Previous commit
Update wording
  • Loading branch information
GaryPEGEOT authored and Gary PEGEOT committed Apr 2, 2019
commit fdfd25c43a67c0d094258bf1daf7847575597f66
2 changes: 1 addition & 1 deletion plugins/vcr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The naming strategy turn a request into a deterministic and unique identifier.
The identifier must be safe to use with a filesystem.
The plugin provide a default naming strategy, the ``PathNamingStrategy``. You can define two options:

* **hash_headers**: the list of header(s) that make the request unique (Ex: 'Authorization'). The content of the header will be hashed to generate a unique signature. By default no header is used.
* **hash_headers**: the list of header(s) that make the request unique (Ex: 'Authorization'). The name & content of the header will be hashed to generate a unique signature. By default no header is used.
* **hash_body_methods**: indicate for which request methods the body makes requests distinct. (Default: PUT, POST, PATCH)

This naming strategy will turn a GET request to https://example.org/my-path to the ``example.org_GET_my-path`` name, and optionally add hashes if the request
Expand Down
0