You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- add test coverage
- Updated the localhost for http/2 to be setup from builder instead.
- trivial updates for the localhost port to avoid conflict with other local server.
Copy file name to clipboardExpand all lines: tests/py_localhost/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,12 +17,12 @@ Python 3.5+ required.
17
17
#### Echo
18
18
19
19
- Minor changed based on the example to response the headers of requests back within the headers from `/echo`.
20
-
- To test the server runs correctly, you can do `curl -k -v -H "foo:bar" https://localhost:8443/echo` and check the result.
20
+
- To test the server runs correctly, you can do `curl -k -v -H "foo:bar" https://localhost:3443/echo` and check the result.
21
21
22
22
#### Download test
23
23
24
24
- To test download, when `:path` is `/downloadTest`, server will response a repeated string with length `self.download_test_length`, which is 2,500,000,000 now. It will be repeats of sting "This is CRT HTTP test."
25
-
- To test the server runs correctly, you can do `curl -k -v -H "foo:bar" https://localhost:8443/downloadTest` and check the result.
25
+
- To test the server runs correctly, you can do `curl -k -v -H "foo:bar" https://localhost:3443/downloadTest` and check the result.
26
26
27
27
#### Slow Connection Test
28
28
@@ -31,10 +31,10 @@ Python 3.5+ required.
31
31
#### Upload test
32
32
33
33
- To test upload, when `:method` is `POST` or `PUT`, server will response the length received from response body
34
-
- To test the server runs correctly, you can do `curl -k -X POST -F'data=@upload_test.txt' https://localhost:8443/upload_test` where `upload_test.txt` is file to upload.
34
+
- To test the server runs correctly, you can do `curl -k -X POST -F'data=@upload_test.txt' https://localhost:3443/upload_test` where `upload_test.txt` is file to upload.
35
35
36
36
### Non-TLS server
37
37
38
38
- The code is based the non-tls [example](http://python-hyper.org/projects/h2/en/stable/basic-usage.html) from hyper h2 server.
39
39
- Run python. `python3 ./non_tls_server.py`.
40
-
- To test the server runs correctly, you can do `curl -v --http2-prior-knowledge http://localhost:8080` and check the result.
40
+
- To test the server runs correctly, you can do `curl -v --http2-prior-knowledge http://localhost:3280` and check the result.
0 commit comments