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
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@ The httpx project relies on these excellent libraries:
109
109
110
110
A huge amount of credit is due to `requests` for the API layout that
111
111
much of this work follows, as well as to `urllib3` for plenty of design
112
-
inspiration around the lowerlevel networking details.
112
+
inspiration around the lower-level networking details.
113
113
114
114
<palign="center">— ⭐️ —</p>
115
115
<palign="center"><i>HTTPX is <ahref="https://github.com/encode/httpx/blob/master/LICENSE.md">BSD licensed</a> code. Designed & built in Brighton, England.</i></p>
Copy file name to clipboardExpand all lines: docs/parallel.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,15 +37,14 @@ as soon as it's available:
37
37
38
38
## Exceptions and Cancellations
39
39
40
-
The style of using `parallel` blocks ensures that you'll always have well
41
-
defined exception and cancellation behaviours. Request exceptions are only ever
42
-
raised when calling either `get_response` or `next_response`, and any pending
43
-
requests are cancelled on exiting the block.
40
+
The style of using `parallel` blocks ensures that you'll always have a well-defined exception and cancellation behaviors. Request exceptions are only ever
41
+
raised when calling either `get_response` or `next_response` and any pending
42
+
requests are canceled on exiting the block.
44
43
45
44
## Parallel requests with a Client
46
45
47
46
You can also call `parallel()` from a client instance, which allows you to
48
-
control the authentication or dispatch behaviour for all requests within the
47
+
control the authentication or dispatch behavior for all requests within the
HTTPX will automatically handle decoding the response content into unicode text.
65
+
HTTPX will automatically handle decoding the response content into Unicode text.
66
66
67
67
```python
68
68
>>> r = httpx.get('https://www.example.org/')
@@ -128,7 +128,7 @@ To include additional headers in the outgoing request, use the `headers` keyword
128
128
## Sending Form Encoded Data
129
129
130
130
Some types of HTTP requests, such as `POST` and `PUT` requests, can include data
131
-
in the request body. One common way of including that is as formencoded data,
131
+
in the request body. One common way of including that is as form-encoded data,
132
132
which is used for HTML forms.
133
133
134
134
```python
@@ -198,7 +198,7 @@ of items for the file value:
198
198
199
199
## Sending JSON Encoded Data
200
200
201
-
Form encoded data is okay if all you need is simple key-value data structure.
201
+
Form encoded data is okay if all you need is a simple key-value data structure.
202
202
For more complicated data structures you'll often want to use JSON encoding instead.
203
203
204
204
```python
@@ -222,7 +222,7 @@ For more complicated data structures you'll often want to use JSON encoding inst
222
222
223
223
## Sending Binary Request Data
224
224
225
-
For other encodings you should use either a `bytes` type, or a generator
225
+
For other encodings, you should use either a `bytes` type or a generator
226
226
that yields `bytes`.
227
227
228
228
You'll probably also want to set a custom `Content-Type` header when uploading
@@ -291,10 +291,10 @@ The `Headers` data type is case-insensitive, so you can use any capitalization.
291
291
'application/json'
292
292
```
293
293
294
-
Multiple values for a single response header are represented as a single commaseparated
294
+
Multiple values for a single response header are represented as a single comma-separated
295
295
value, as per [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2):
296
296
297
-
> A recipient MAY combine multiple header fields with the same field name into one “field-name: field-value” pair, without changing the semantics of the message, by appending each subsequent fieldvalue to the combined field value in order, separated by a comma.
297
+
> A recipient MAY combine multiple header fields with the same field name into one “field-name: field-value” pair, without changing the semantics of the message, by appending each subsequent field-value to the combined field value in order, separated by a comma.
298
298
299
299
## Cookies
300
300
@@ -329,7 +329,7 @@ with additional API for accessing cookies by their domain or path.
329
329
330
330
## Redirection and History
331
331
332
-
By default HTTPX will follow redirects for anything except `HEAD` requests.
332
+
By default, HTTPX will follow redirects for anything except `HEAD` requests.
333
333
334
334
The `history` property of the response can be used to inspect any followed redirects.
335
335
It contains a list of all any redirect responses that were followed, in the order
0 commit comments