diff --git a/docs/graphql.md b/docs/graphql.md index d62b1ddec..96f6a9414 100644 --- a/docs/graphql.md +++ b/docs/graphql.md @@ -70,9 +70,9 @@ async def log_user_agent(user_agent): If you're working with a standard ORM, then just use regular function calls for your "resolve" methods, and Starlette will manage running the GraphQL query within a -seperate thread. +separate thread. -If you want to use an asyncronous ORM, then use "async resolve" methods, and +If you want to use an asynchronous ORM, then use "async resolve" methods, and make sure to setup Graphene's AsyncioExecutor using the `executor` argument. ```python diff --git a/docs/responses.md b/docs/responses.md index 2ac7c4e71..c4cd84ed3 100644 --- a/docs/responses.md +++ b/docs/responses.md @@ -40,7 +40,7 @@ Signature: `Response.set_cookie(key, value, max_age=None, expires=None, path="/" * `path` - A string that specifies the subset of routes to which the cookie will apply. `Optional` * `domain` - A string that specifies the domain for which the cookie is valid. `Optional` * `secure` - A bool indicating that the cookie will only be sent to the server if request is made using SSL and the HTTPS protocol. `Optional` -* `httponly` - A bool indicating that the cookie cannot be accessed via Javascript through `Document.cookie` property, the `XMLHttpRequest` or `Request` APIs. `Optional` +* `httponly` - A bool indicating that the cookie cannot be accessed via JavaScript through `Document.cookie` property, the `XMLHttpRequest` or `Request` APIs. `Optional` * `samesite` - A string that specifies the samesite strategy for the cookie. Valid values are `'lax'`, `'strict'` and `'none'`. Defaults to `'lax'`. `Optional` #### Delete Cookie diff --git a/docs/third-party-packages.md b/docs/third-party-packages.md index cb7545073..7cf1c9edc 100644 --- a/docs/third-party-packages.md +++ b/docs/third-party-packages.md @@ -78,7 +78,7 @@ The ultimate Python library in building OAuth and OpenID Connect clients and ser ### Starlette OAuth2 API -Gitlab +GitLab A starlette middleware to add authentication and authorization through JWTs. It relies solely on an auth provider to issue access and/or id tokens to clients. diff --git a/starlette/applications.py b/starlette/applications.py index 0da20b691..34c3e38bd 100644 --- a/starlette/applications.py +++ b/starlette/applications.py @@ -20,9 +20,9 @@ class Starlette: * **middleware** - A list of middleware to run for every request. A starlette application will always automatically include two middleware classes. `ServerErrorMiddleware` is added as the very outermost middleware, to handle - any uncaught errors occuring anywhere in the entire stack. + any uncaught errors occurring anywhere in the entire stack. `ExceptionMiddleware` is added as the very innermost middleware, to deal - with handled exception cases occuring in the routing or endpoints. + with handled exception cases occurring in the routing or endpoints. * **exception_handlers** - A dictionary mapping either integer status codes, or exception class types onto callables which handle the exceptions. Exception handler callables should be of the form