-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1689979 [wpt PR 27421] - HTTP/1 status code tests, a=testonly
Automatic update from web-platform-tests HTTP/1 status code tests For whatwg/fetch#1142 and whatwg/fetch#1159. -- wpt-commits: a0ff0251fc21d0acd2e2443a033b390f44399b43 wpt-pr: 27421 UltraBlame original commit: 5eee1e3543982e0b2782b3fe9dda6cd64f59e0c5
- Loading branch information
Showing
2 changed files
with
463 additions
and
0 deletions.
There are no files selected for viewing
68 changes: 68 additions & 0 deletions
68
testing/web-platform/tests/fetch/h1-parsing/resources/status-code.py
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,68 @@ | ||
def | ||
main | ||
( | ||
request | ||
response | ||
) | ||
: | ||
|
||
output | ||
= | ||
" | ||
HTTP | ||
/ | ||
1 | ||
. | ||
1 | ||
" | ||
|
||
output | ||
+ | ||
= | ||
request | ||
. | ||
GET | ||
. | ||
first | ||
( | ||
" | ||
input | ||
" | ||
) | ||
|
||
output | ||
+ | ||
= | ||
" | ||
\ | ||
n | ||
" | ||
+ | ||
" | ||
header | ||
- | ||
parsing | ||
: | ||
is | ||
sad | ||
" | ||
+ | ||
" | ||
\ | ||
n | ||
" | ||
|
||
response | ||
. | ||
writer | ||
. | ||
write | ||
( | ||
output | ||
) | ||
|
||
response | ||
. | ||
close_connection | ||
= | ||
True |
Oops, something went wrong.