]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Fix some grammar in Advanced docs (#461)
authorthebigmunch <mail@thebigmunch.me>
Wed, 9 Oct 2019 18:01:37 +0000 (14:01 -0400)
committerFlorimond Manca <florimond.manca@gmail.com>
Wed, 9 Oct 2019 18:01:37 +0000 (20:01 +0200)
docs/advanced.md

index f4a6835b5c213de25cc793ead467bb6198bfc0d7..88195e67a8f4bbb7a75ced786458f147e2ef66df 100644 (file)
@@ -18,12 +18,12 @@ A Client instance is equivalent to a Session instance in `requests`.
 ## Calling into Python Web Apps
 
 You can configure an `httpx` client to call directly into a Python web
-application, using either the WSGI or ASGI protocol.
+application using either the WSGI or ASGI protocol.
 
 This is particularly useful for two main use-cases:
 
-* Using `httpx` as a client, inside test cases.
-* Mocking out external services, during tests or in dev/staging environments.
+* Using `httpx` as a client inside test cases.
+* Mocking out external services during tests or in dev/staging environments.
 
 Here's an example of integrating against a Flask application:
 
@@ -44,12 +44,12 @@ assert r.status_code == 200
 assert r.text == "Hello World!"
 ```
 
-For some more complex cases, you might need to customize the WSGI or ASGI
+For some more complex cases you might need to customize the WSGI or ASGI
 dispatch. This allows you to:
 
-* Inspect 500 error responses, rather than raise exceptions, by setting `raise_app_exceptions=False`.
-* Mount the WSGI or ASGI application at a subpath, by setting `script_name` (WSGI) or `root_path` (ASGI).
-* Use a given the client address for requests, by setting `remote_addr` (WSGI) or `client` (ASGI).
+* Inspect 500 error responses rather than raise exceptions by setting `raise_app_exceptions=False`.
+* Mount the WSGI or ASGI application at a subpath by setting `script_name` (WSGI) or `root_path` (ASGI).
+* Use a given client address for requests by setting `remote_addr` (WSGI) or `client` (ASGI).
 
 For example: