A fork of httpx with support for a custom JSON serializer
Project description
HTTPJ -A fork of httpx with support for a custom JSON serializer.
Install HTTPJ using pip:
$ pip install httpj
Now, let's get started:
>>> import httpj
>>> import orjson
>>> r = httpj.post('https://www.example.org/', json={"foo": "bar"}, json_serialize=orjson.dumps)
>>> r
<Response [200 OK]>
>>> r.status_code
200
>>> r.headers['content-type']
'text/html; charset=UTF-8'
>>> r.text
'<!doctype html>\n<html>\n<head>\n<title>Example Domain</title>...'
Release Information
Fixed
- Fix
app
type signature inASGITransport
. (#3109)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
httpj-0.27.0.tar.gz
(125.9 kB
view hashes)
Built Distribution
httpj-0.27.0-py3-none-any.whl
(75.5 kB
view hashes)