Updated and grouped deps, fixed typos in readme and docstrings
This commit is contained in:
parent
73886fbc0e
commit
8b61a6bf8d
4 changed files with 28 additions and 21 deletions
|
@ -22,7 +22,7 @@ def with_redirect(
|
|||
To leave the same HTTP method, use 307 status code
|
||||
or call `with_redirect_307` function.
|
||||
`kwargs` are passed directly
|
||||
to the Response contructor
|
||||
to the Response constructor
|
||||
|
||||
Args:
|
||||
url (str, optional): Target URL, root by default
|
||||
|
@ -45,7 +45,7 @@ def with_text(
|
|||
**kwargs) -> PlainTextResponse:
|
||||
"""Return a plain text to the user.
|
||||
`kwargs` are passed directly
|
||||
to the Response contructor
|
||||
to the Response constructor
|
||||
|
||||
Args:
|
||||
content (str): Plain text content
|
||||
|
@ -121,7 +121,7 @@ def with_file(
|
|||
"""Send the file specified in `path`
|
||||
automatically guessing its mimetype if `mime` is None.
|
||||
`kwargs` are passed directly
|
||||
to the Response contructor
|
||||
to the Response constructor
|
||||
|
||||
Args:
|
||||
path (os.PathLike): File path
|
||||
|
|
Loading…
Add table
Reference in a new issue