treq icon indicating copy to clipboard operation
treq copied to clipboard

Python requests like API built on top of Twisted's HTTP client.

Results 77 treq issues
Sort by recently updated
recently updated
newest added

There are some API services out there in the wild that require a content-type of "multipart/mixed", so that a POST may contain, for example, a JSON payload and a binary...

It seems the API to upload files is broken. Below is the code that I am using to upload a file to Infura's IPFS gateway ``` from twisted.internet.task import react...

enhancement

This may be related to #132 so feel free to fold it into that but we ran into a scenario where we had to pass a meaningless `files=` kwarg to...

In requests, you can specify the client cert with an optional parameter like: `requests.get(url, cert=[client_cert_location, client_cert_key_location])`. I would be nice to be able to specify the client cert in the...

Provide an example that describes how to customize TLS settings by passing a customized *agent* to `HTTPClient`. This is useful to: - Configure trust roots (see #94) - Do client...

enhancement

Sequences of tuples in `treq.testing` are a terrible idea. Some classes with names attributes would be more appropriate. Here's an attempt at that: ```python # # Helpers for mocking treq...

enhancement

An optional argument to `treq.HTTPClient` could allow a user to plug in an alternative JSON implementation, with the expectation that it has the basic `dumps()` and `loads()` functions. If `treq`...

enhancement

Unlike [`requests`](https://pypi.org/project/requests/), `treq` doesn't support the (semi-standard) environment variables for proxy configuration, such as `HTTP_PROXY`, `https_proxy`, `no_proxy` and others. This makes it unusable in some applications, such on company networks...

enhancement

Unless I'm missing it there's no dictlike interface to headers in treq either. At best it appears there is a twisted Headers class which requires me to do something like...

enhancement

This results in an invalid header value of `10,10` or something. treq should either replace the provided value or notice that it's there and use it (possibly throwing an exception...

bug