Expand description
§graphrt-http
Outbound HTTP for workflows:
HttpClient: a shared client service enforcing anEgressPolicy(SSRF protection, host allow/deny lists, redirect re-validation, response size caps, no environment proxies).HttpRequestNode: thehttp-requestnode.
use graphrt_core::{Registry, Services};
use graphrt_http::{EgressPolicy, HttpClient};
let mut registry = Registry::with_builtins();
graphrt_http::register(&mut registry);
let services = Services::new().with(HttpClient::new(EgressPolicy::default())?);Structs§
- Egress
Policy - Rules for outbound HTTP requests made by workflow nodes.
- Http
Client - HTTP client shared by HTTP-calling nodes. Register it in
graphrt_core::Services; when absent, nodes use a client with the default (restrictive)EgressPolicy. - Http
File Resolver - Downloads
http(s)file URLs with a size cap. - Http
Request Node - Makes an HTTP request.
Enums§
- Client
Error - Error building an
HttpClient. - Egress
Error - Reason a destination was refused.
Constants§
- INLINE_
FILE_ LIMIT - Binary responses up to this size are returned inline as
data:URL files. - KIND
- Node kind handled by
HttpRequestNode.
Functions§
- descriptor
- Catalog descriptor of the
http-requestnode. - is_
public - Whether an address is globally routable (safe to contact from a multi-tenant runtime).
- register
- Register the
http-requestnode kind.