Skip to main content

Module http_client

Module http_client 

Source
Expand description

Synchronous HTTP client bridge using bun_http::AsyncHTTP::init_sync + send_sync().

Provides a simple synchronous HTTP request function that can be called from anywhere in bao_runtime without needing SpiderMonkey context.

Structs§

HttpResponse
Simplified HTTP response type extracted from picohttp::Response. Owns all data (no borrowed lifetime) so it can be stored and used freely.

Functions§

http_request
Perform a synchronous HTTP request via bun_http::AsyncHTTP::send_sync().