Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Shortcut for creating and mocking a `HTTPX` [Response](#response).
> Response *text* content to mock, with automatic content-type header added.
> * **html** - *(optional) str*
> Response *HTML* content to mock, with automatic content-type header added.
> * **json** - *(optional) str | list | dict*
> * **json** - *(optional) Any*
> Response *JSON* content to mock, with automatic content-type header added.
> * **stream** - *(optional) Iterable[bytes]*
> Response *stream* to mock.
Expand Down Expand Up @@ -190,7 +190,7 @@ Shortcut for creating and mocking a `HTTPX` [Response](#response).
> Text content, with automatic content-type header added.
> * **html** - *(optional) str*
> HTML content, with automatic content-type header added.
> * **json** - *(optional) str | list | dict*
> * **json** - *(optional) Any*
> JSON content, with automatic content-type header added.
> * **stream** - *(optional) Iterable[bytes]*
> Content *stream*.
Expand Down
2 changes: 1 addition & 1 deletion respx/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def respond(
content: Optional[Content] = None,
text: Optional[str] = None,
html: Optional[str] = None,
json: Optional[Union[str, List, Dict]] = None,
json: Any = None,
stream: Optional[Union[httpx.SyncByteStream, httpx.AsyncByteStream]] = None,
content_type: Optional[str] = None,
http_version: Optional[str] = None,
Expand Down
Loading