Skip to content
Myr

Merge pull request #5505 from ollien/prepared-requests-docs-correction

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

Clarify that PreparedRequests should not be manually created

authored by Nate Prewitt · committed by GitHub · parents 1ca1c52, 9cae7be · 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