Skip to main content

Class: Http

Methods

fetch()

Make an HTTP request through the host. Parameters: Returns: HttpResponse Raises: HttpError on network-level failure (DNS, TLS, timeout, connection)

HttpResponse

Basic GET

POST with JSON

Error Handling

Timeout

Methods

All HTTP methods are supported:

Headers

Case-insensitive header dict:

Creating Artifacts

Common pattern: create Friday platform artifacts via HTTP API:

REST API Patterns

Authentication

Query Parameters

Construct URL with parameters:

Response Body Limits

  • 5MB limit enforced by platform
  • Exceeding returns truncated or error response
  • For large payloads, consider streaming (not yet available)

URL Allowlists

Not yet implemented. Currently all outbound HTTPS requests are allowed.

Why Not Use requests or httpx?

Agents run as native Python processes. You can pip install requests or httpx if needed. Host-provided HTTP is still preferred for audit logging, rate limiting, TLS management, and response limits.

See Also

How to Make HTTP Requests

Task-oriented guide