Skip to main content

mcs-types-http

Shared HTTP types for the Model Context Standard (MCS).

Contains HttpResponse and HttpError -- the library-agnostic value objects returned by any MCS HTTP adapter (mcs-adapter-http, mcs-adapter-http-httpx, ...).

This package has zero dependencies. It exists so that alternative HTTP adapter implementations can share the same response type without depending on each other.

Installation

pip install mcs-types-http

Most users don't need to install this directly -- it's pulled in automatically by mcs-adapter-http and other adapter packages.

Usage

from mcs.types.http import HttpResponse, HttpError

resp = HttpResponse(status_code=200, text='{"ok": true}')
assert resp.ok
data = resp.json()

Links

License

Apache-2.0

Metadata

Release files for mcs-types-http 0.1.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 mcs-types-http 0.1.0
File Size Uploaded
mcs_types_http-0.1.0.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcs-types-http 0.1.0
File Interpreter ABI Platform
mcs_types_http-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.1 kB

Release files / mcs_types_http-0.1.0.tar.gz

Download URL mcs_types_http-0.1.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
03f0697f546ca358119101e2af594288348f757757960003efa3b436ece3fd6d
BLAKE2b-256 checksum
How to use checksums
99a86f1cb46d31f69411d538ee4908e4a9d5d53089af3addacc5393d676a64a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Release files / mcs_types_http-0.1.0-py3-none-any.whl

Download URL mcs_types_http-0.1.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13dbbf41d37227d656a58a5316328b13fb4fad1b2f6a03d3348e827da66711b5
BLAKE2b-256 checksum
How to use checksums
e223b48487d44a6faf15d9b1ba91e5e3512b62dc5a07ed8b59348cf09724dfd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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