This repository has been archived by the owner on Mar 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and simplify HAR files processing
- Drop everything about Insomnia, whose HAR export is useless for HTTPolice: see comments in Kong/insomnia#416 as well as Kong/insomnia#840 - Drop the big test files that used to contain entire palettes of exchanges manually exported from a range of browsers. These are all obsolete by now and I can't be bothered to run them all again. Instead, have much smaller and more easily reproducible files illustrating specific behaviors. - Trying to guess the real HTTP version from a browser's HAR export has proved to be a fool's errand. Just consider it unknown. Fix no. 1029 in this situation. - Drop workarounds for problems that I can't reproduce with the current browser versions. - Add new workarounds, too.
- Loading branch information
Showing
32 changed files
with
2,010 additions
and
11,567 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
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,37 @@ | ||
{ | ||
"_warning": "This is not a real HAR file! It only contains the keys that are interesting to HTTPolice. Please do not use this as an example of a valid HAR file.", | ||
"_expected": [], | ||
"log": { | ||
"creator": {"name": "demo"}, | ||
"entries": [ | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"url": "http://example.com/", | ||
"httpVersion": "HTTP/1.1", | ||
"headers": [ | ||
{"name": "Host", "value": "example.com"}, | ||
{"name": "User-Agent", "value": "demo"} | ||
], | ||
"bodySize": 0 | ||
}, | ||
"response": { | ||
"httpVersion": "HTTP/1.1", | ||
"status": 200, | ||
"statusText": "OK", | ||
"headers": [ | ||
{"name": "Date", "value": "Thu, 31 Dec 2015 18:26:56 GMT"}, | ||
{"name": "Content-Type", "value": "text/plain"}, | ||
{"name": "Content-Length", "value": "14"} | ||
], | ||
"bodySize": 14, | ||
"content": { | ||
"size": 14, | ||
"encoding": "base64", | ||
"text": "Hello world!\r\n" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.