Skip to content

Commit b65bce5

Browse files
kylegalbraithsethmlarson
authored andcommitted
Fix typos, spelling issues, and grammar in docs (#426)
1 parent 9bbd040 commit b65bce5

7 files changed

Lines changed: 23 additions & 24 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ The httpx project relies on these excellent libraries:
109109

110110
A huge amount of credit is due to `requests` for the API layout that
111111
much of this work follows, as well as to `urllib3` for plenty of design
112-
inspiration around the lower level networking details.
112+
inspiration around the lower-level networking details.
113113

114114
<p align="center">&mdash; ⭐️ &mdash;</p>
115115
<p align="center"><i>HTTPX is <a href="https://github.com/encode/httpx/blob/master/LICENSE.md">BSD licensed</a> code. Designed & built in Brighton, England.</i></p>

docs/advanced.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ assert r.status_code == 200
4242
assert r.text == "Hello World!"
4343
```
4444

45-
For some more complex cases you might need to customize the WSGI or ASGI
45+
For some more complex cases, you might need to customize the WSGI or ASGI
4646
dispatch. This allows you to:
4747

4848
* Inspect 500 error responses, rather than raise exceptions, by setting `raise_app_exceptions=False`.
@@ -70,9 +70,9 @@ make modifications before sending the request.
7070
<Response [200 OK]>
7171
```
7272

73-
## Specify the version of HTTP protocol
73+
## Specify the version of the HTTP protocol
7474

75-
One can set the version of HTTP protocol for the client in case you want to make the requests using specific version.
75+
One can set the version of the HTTP protocol for the client in case you want to make the requests using a specific version.
7676

7777
For example:
7878

@@ -157,6 +157,6 @@ proxy = httpx.HTTPProxy(
157157
)
158158
client = httpx.Client(proxies=proxy)
159159

160-
# This request will be tunnelled instead of forwarded.
160+
# This request will be tunneled instead of forwarded.
161161
client.get("http://example.com")
162162
```

docs/compatibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This documentation outlines places where the API differs...
66

77
## QuickStart
88

9-
Pretty much all the API mentioned in the `requests` QuickStart should be identical
9+
Pretty much any API mentioned in the `requests` QuickStart should be identical
1010
to the API in our own documentation. The following exceptions apply:
1111

1212
* `Response.url` - Returns a `URL` instance, rather than a string. Use `str(response.url)` if you need a string instance.

docs/contributing.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Contributing
22

3-
Thank you for being interested in contributing with HTTPX.
4-
There are many ways you can contribute with the project:
3+
Thank you for being interested in contributing to HTTPX.
4+
There are many ways you can contribute to the project:
55

66
- Try HTTPX and [report bugs/issues you find](https://github.com/encode/httpx/issues/new)
77
- [Implement new features](https://github.com/encode/httpx/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)
@@ -59,7 +59,7 @@ We use [nox](https://nox.thea.codes/en/stable/) to automate testing, linting,
5959
and documentation building workflow. Make sure you have it installed
6060
at your system before starting.
6161

62-
Install nox with:
62+
Install `nox` with:
6363

6464
```shell
6565
$ python3 -m pip install --user nox
@@ -72,7 +72,7 @@ to keep it into an isolated environment:
7272
$ pipx install nox
7373
```
7474

75-
Now, with nox installed run the complete pipeline with:
75+
Now, with nox installed, run the complete pipeline with:
7676

7777
```shell
7878
$ nox

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ The HTTPX project relies on these excellent libraries:
103103

104104
A huge amount of credit is due to `requests` for the API layout that
105105
much of this work follows, as well as to `urllib3` for plenty of design
106-
inspiration around the lower level networking details.
106+
inspiration around the lower-level networking details.
107107

108108
## Installation
109109

docs/parallel.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,14 @@ as soon as it's available:
3737

3838
## Exceptions and Cancellations
3939

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.
4443

4544
## Parallel requests with a Client
4645

4746
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
4948
block.
5049

5150
```python

docs/quickstart.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
The `httpx` library is designed to be API compatible with `requests` wherever
66
possible.
77

8-
First start by importing HTTPX:
8+
First, start by importing HTTPX:
99

1010
```
1111
>>> import httpx
@@ -62,7 +62,7 @@ URL('https://httpbin.org/get?key1=value1&key2=value2&key2=value3')
6262

6363
## Response Content
6464

65-
HTTPX will automatically handle decoding the response content into unicode text.
65+
HTTPX will automatically handle decoding the response content into Unicode text.
6666

6767
```python
6868
>>> r = httpx.get('https://www.example.org/')
@@ -128,7 +128,7 @@ To include additional headers in the outgoing request, use the `headers` keyword
128128
## Sending Form Encoded Data
129129

130130
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 form encoded data,
131+
in the request body. One common way of including that is as form-encoded data,
132132
which is used for HTML forms.
133133

134134
```python
@@ -198,7 +198,7 @@ of items for the file value:
198198

199199
## Sending JSON Encoded Data
200200

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.
202202
For more complicated data structures you'll often want to use JSON encoding instead.
203203

204204
```python
@@ -222,7 +222,7 @@ For more complicated data structures you'll often want to use JSON encoding inst
222222

223223
## Sending Binary Request Data
224224

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
226226
that yields `bytes`.
227227

228228
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.
291291
'application/json'
292292
```
293293

294-
Multiple values for a single response header are represented as a single comma separated
294+
Multiple values for a single response header are represented as a single comma-separated
295295
value, as per [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2):
296296

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.
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.
298298
299299
## Cookies
300300

@@ -329,7 +329,7 @@ with additional API for accessing cookies by their domain or path.
329329

330330
## Redirection and History
331331

332-
By default HTTPX will follow redirects for anything except `HEAD` requests.
332+
By default, HTTPX will follow redirects for anything except `HEAD` requests.
333333

334334
The `history` property of the response can be used to inspect any followed redirects.
335335
It contains a list of all any redirect responses that were followed, in the order

0 commit comments

Comments
 (0)