Browse Source
docs: fix incorrect description of Header parameter conversion
Corrected the explanation of how Header converts parameter names.
pull/14689/head
Fazal
6 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
docs/en/docs/tutorial/header-params.md
|
|
@ -38,7 +38,7 @@ Most of the standard headers are separated by a "hyphen" character, also known a |
|
|
|
|
|
|
|
|
But a variable like `user-agent` is invalid in Python. |
|
|
But a variable like `user-agent` is invalid in Python. |
|
|
|
|
|
|
|
|
So, by default, `Header` will convert the parameter names characters from underscore (`_`) to hyphen (`-`) to extract and document the headers. |
|
|
So, by default, `Header` will convert the parameter names characters from hyphen (`-`) to underscore (`_`) to extract and document the headers. |
|
|
|
|
|
|
|
|
Also, HTTP headers are case-insensitive, so, you can declare them with standard Python style (also known as "snake_case"). |
|
|
Also, HTTP headers are case-insensitive, so, you can declare them with standard Python style (also known as "snake_case"). |
|
|
|
|
|
|
|
|
|