Undocumented
Method | assert |
Undocumented |
Method | set |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
`HTTPClient.request()` warns that non-string header values are dropped and that this behavior is deprecated. |
Method | test |
Undocumented |
Method | test |
The `HTTPClient.request()` *files* argument requires tuples of length 2 or 3. It raises `TypeError` when the tuple is too long. |
Method | test |
The `HTTPClient.request()` *files* argument requires tuples of length 2 or 3. It raises `TypeError` when the tuple is too short. |
Method | test |
`HTTPClient.request()` warns that headers of an unexpected type are invalid and that this behavior is deprecated. |
Method | test |
The *headers* parameter accepts a `twisted.web.http_headers.Headers` instance. |
Method | test |
`HTTPClient.request()` rejects invalid keyword parameters with `TypeError`. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Passing `HTTPClient.request()` both *data* and *json* parameters is invalid because *json* is ignored. This behavior is deprecated. |
Method | test |
Passing `HTTPClient.request()` both *files* and *json* parameters is invalid because *json* is ignored. This behavior is deprecated. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
When the characters ``&`` and ``#`` are passed to *params* as param names or values they are percent-escaped in the URL. |
Method | test |
Undocumented |
Method | test |
Verify timeout is cancelled if a response is received before timeout period elapses. |
Method | test |
Verify the request is cancelled if a response is not received within specified timeout period. |
Method | test |
treq coerces non-string param names passed to *params* like `urllib.urlencode()` |
Method | test |
treq coerces non-string values passed to *params* like `urllib.urlencode()` |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
The URL parameter may contain path segments or querystring parameters that are not valid UTF-8. These pass through. |
Method | test |
A URL may be passed as a `hyperlink.DecodedURL` object. It is converted to bytes when passed to the underlying agent. |
Method | test |
A URL may be passed as a `hyperlink.EncodedURL` object. It is converted to bytes when passed to the underlying agent. |
Method | test |
The *params* argument augments an instance of `hyperlink.DecodedURL` passed as the *url* parameter, just as if it were a string. |
Method | test |
Undocumented |
Method | test |
A URL that contains non-ASCII characters can be augmented with querystring parameters. |
Method | test |
URL parameters may contain spaces encoded as ``+``. These remain as such and are not mangled. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Instance Variable | agent |
Undocumented |
Instance Variable | client |
Undocumented |
Instance Variable | fbp |
Undocumented |
Instance Variable |
|
Undocumented |
Instance Variable | mbp |
Undocumented |
Instance Variable |
|
Undocumented |
`HTTPClient.request()` warns that non-string header values are dropped and that this behavior is deprecated.
The `HTTPClient.request()` *files* argument requires tuples of length 2 or 3. It raises `TypeError` when the tuple is too long.
The `HTTPClient.request()` *files* argument requires tuples of length 2 or 3. It raises `TypeError` when the tuple is too short.
`HTTPClient.request()` warns that headers of an unexpected type are invalid and that this behavior is deprecated.
Passing `HTTPClient.request()` both *data* and *json* parameters is invalid because *json* is ignored. This behavior is deprecated.
Passing `HTTPClient.request()` both *files* and *json* parameters is invalid because *json* is ignored. This behavior is deprecated.
def test_request_mixed_params(self): (source)
Undocumented
def test_request_mixed_params_dict(self): (source)
Undocumented
def test_request_named_attachment(self): (source)
Undocumented
def test_request_named_attachment_and_ctype(self): (source)
Undocumented
def test_request_no_name_attachment(self): (source)
Undocumented
When the characters ``&`` and ``#`` are passed to *params* as param names or values they are percent-escaped in the URL. This reproduces https://github.com/twisted/treq/issues/282
The URL parameter may contain path segments or querystring parameters that are not valid UTF-8. These pass through.
A URL may be passed as a `hyperlink.DecodedURL` object. It is converted to bytes when passed to the underlying agent.
A URL may be passed as a `hyperlink.EncodedURL` object. It is converted to bytes when passed to the underlying agent.
The *params* argument augments an instance of `hyperlink.DecodedURL` passed as the *url* parameter, just as if it were a string.
A URL that contains non-ASCII characters can be augmented with querystring parameters. This reproduces treq #264.