-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable writing response directly to file (#45)
* Switch the reading of response headers to a dedicated function * Add example of saving request response directly to file * Add test for the function * Update array initialization format to support PHP < 5.4
- Loading branch information
1 parent
4b62439
commit 16e8489
Showing
4 changed files
with
76 additions
and
14 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
HTTP/1.1 100 Continue | ||
|
||
HTTP/1.1 200 OK | ||
Server: nginx/1.1.19 | ||
Date: Fri, 11 Aug 2017 13:22:00 GMT | ||
Content-Type: image/jpeg | ||
Content-Length: 62574 | ||
Connection: close | ||
Cache-Control: max-age=7257600 | ||
Expires: Fri, 03 Nov 2017 13:22:00 GMT | ||
Strict-Transport-Security: max-age=31536000; includeSubDomains | ||
X-Frame-Option: DENY | ||
|