Skip to content
Myr

Clarify that PreparedRequests should not be manually created

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Closes #5504

authored by Nick Krichevsky · committed by Nick Krichevsky · parent 1ca1c52 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:requests/models.py+3 added-1 removed
271 unmodified lines
272class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):273 """The fully mutable :class:`PreparedRequest <PreparedRequest>` object,274 containing the exact bytes that will be sent to the server.275276 Generated from either a :class:`Request <Request>` object or manually.276 Instances are generated from a :class:`Request <Request>` object, and277 should not be instantiated manually; doing so may produce undesirable278 effects.279280 Usage::281282 >>> import requests
674 unmodified lines