-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for iterating headers (#16)
Rationale: `Response.getHeader()` does not work with multiple headers sharing the same name (which is not uncommon, e.g. the `Set-Cookie` header). Mainly adds `Response.iterateHeaders(options)` which returns a `HeaderIterator`. See `examples/advanced.zig` for usage. It also supports iterating over headers of redirected requests. Added the following methods for easier testing: - `Response.getRedirectCount()` - `Easy.setFollowLocation(enable)` --------- Co-authored-by: jiacai2050 <[email protected]>
- Loading branch information
1 parent
5a296fb
commit 5728019
Showing
2 changed files
with
157 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters