Liking cljdoc? Tell your friends :D
Clojure only.

com.blockether.vis.internal.foundation.shim-httpx

Built-in sandbox SHIM: an httpx-compatible module for the model's Python sandbox, implemented as a thin synchronous wrapper over the already-installed requests shim (which itself rides the sandbox socket via stdlib urllib and honours the network guard). No pip, no native wheel, no host bridge.

The preamble publishes an httpx module into sys.modules (so import httpx and httpx.get(...) work) and staples it onto builtins. It exposes the sync surface agents actually reach for: module-level get/post/put/patch/delete/ head/options/request, a Client (with base_url, default headers/params, context-manager support), an httpx-style Response (.status_code, .text, .content, .json(), .headers, .url, .is_success/.is_error/.is_redirect, .raise_for_status()), Headers, URL, Timeout, and the httpx exception tree (HTTPError, RequestError, HTTPStatusError, TimeoutException, ConnectError). Async is supported too: an AsyncClient whose request/get/ post/put/patch/delete/head/options are awaitable coroutines (with aclose and async with support) over the same sync core.

Built-in sandbox SHIM: an `httpx`-compatible module for the model's Python
sandbox, implemented as a thin synchronous wrapper over the already-installed
`requests` shim (which itself rides the sandbox socket via stdlib urllib and
honours the network guard). No pip, no native wheel, no host bridge.

The preamble publishes an `httpx` module into `sys.modules` (so `import httpx`
and `httpx.get(...)` work) and staples it onto builtins. It exposes the sync
surface agents actually reach for: module-level `get/post/put/patch/delete/
head/options/request`, a `Client` (with `base_url`, default headers/params,
context-manager support), an httpx-style `Response` (`.status_code`, `.text`,
`.content`, `.json()`, `.headers`, `.url`, `.is_success/.is_error/.is_redirect`,
`.raise_for_status()`), `Headers`, `URL`, `Timeout`, and the `httpx` exception
tree (`HTTPError`, `RequestError`, `HTTPStatusError`, `TimeoutException`,
`ConnectError`). Async is supported too: an `AsyncClient` whose `request/get/
post/put/patch/delete/head/options` are awaitable coroutines (with `aclose` and
`async with` support) over the same sync core.
raw docstring

vis-extensionclj

source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close