Skip to main content

A fork of httpx with support for a custom JSON serializer

Project description

HTTPJ

HTTPJ -A fork of httpx with support for a custom JSON serializer.

Test Suite Package version


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 in ASGITransport. (#3109)

Full changelog

Project details


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)

Uploaded Source

Built Distribution

httpj-0.27.0-py3-none-any.whl (75.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page