Skip to main content

chp-adapter-http

A governed HTTP client as CHP capabilities — every outbound request is admission-gated, origin-allowlisted, and recorded as signed, replayable evidence.

pip install chp-adapter-http

Compose it onto any CHP host, or onto chp-server:

from chp_server import CapabilityServer
from chp_adapter_http import HttpAdapter, HttpConfig

app = CapabilityServer("my-host")
app.compose(HttpAdapter(HttpConfig(
    allowed_origins=["https://api.example.com"])))   # sandbox to explicit scheme://host[:port]
app.run(port=8800)

Capabilities

  • chp.adapters.http.request — a governed HTTP request (method, url, headers, body).
  • chp.adapters.http.stream — a streamed response.

Requests are constrained to allowed_origins. Header values support ${secret:KEY} and ${ENV} placeholders resolved at call time — so an auth secret never lives in config or evidence — and request header values and response bodies are kept out of evidence by default.


Part of the Capability Host Protocol — one governed implementation of a capability, consumed everywhere. Apache-2.0.

Metadata

Release files for chp-adapter-http 0.54.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chp-adapter-http 0.54.0
File Size Uploaded
chp_adapter_http-0.54.0.tar.gz 15.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chp-adapter-http 0.54.0
File Interpreter ABI Platform
chp_adapter_http-0.54.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.8 kB

Release files / chp_adapter_http-0.54.0.tar.gz

Download URL chp_adapter_http-0.54.0.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a90c7503867df915e66bdf3836d6ae2e398c6eeb02e4f3958e921d7eda3dc922
BLAKE2b-256 checksum
How to use checksums
ecdefe1af8789199450d3a8c2c828c4f4f7ddf89af0bed89a291a1d228f819ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Release files / chp_adapter_http-0.54.0-py3-none-any.whl

Download URL chp_adapter_http-0.54.0-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4d485d5bfc0906b34fcb47300af524a833c064a6f65e2b74a695b935a52814d
BLAKE2b-256 checksum
How to use checksums
80366c3c2c757bbbbef2df8fa474ce84a31f51a73092e31312aafeca4aa69376
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.54.0 This release

2 release files

0.28.0

2 release files

0.27.0

2 release files

0.26.0

2 release files

0.25.0

2 release files

0.24.0

2 release files

0.23.0

1 release file

0.22.0

2 release files

0.21.0

2 release files

0.20.0

2 release files

0.19.0

2 release files

0.18.0

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.15.0

2 release files

0.14.0

2 release files

0.13.1

2 release files

0.13.0

2 release files

0.12.0

2 release files

0.11.0

2 release files

0.10.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page