# HTTP, GraphQL and conditional polls

Bound requests, distinguish safe read retries from uncertain writes and retain ingestion checkpoints deliberately.

Canonical URL: https://opennodeflow.dev/wiki/integration-http/
JSON reference: https://opennodeflow.dev/wiki/integration-http/index.json
Source snapshot: 2026-10-23

The generic HTTP utilities expose deliberately chosen external destinations. They do not infer a provider's permission model or turn every HTTP endpoint into a supported named integration. Use provider-specific nodes when their typed contract fits; use the generic envelope when you need explicit protocol control.

## Request setup

Build the typed request and configure the destination, timeout, response bytes and JSON/text mode. URLs reject embedded credentials and redirects. Supply bearer credentials through a named secret rather than a literal header/URL. Response headers omit Set-Cookie and authorization fields, but arbitrary response bodies may still contain sensitive data; restrict logging and fixture reuse.

Use a pure payload/codec fixture first. Then prove one bounded authorized read. HTTP success does not establish application success when a provider wraps errors in a 200 body; add the documented status/content validation required by that API.

## Retries and effects

Selected GET/HEAD transient responses retry within bounded time and honor Retry-After. A delay beyond the short sleep bound fails so a durable timer can schedule later work. This internal read retry differs from ONF's whole-node retry: the latter repeats all code in the node, including prior pages or external effects.

Effectful HTTP requests and GraphQL execute once and reject nonzero runtime $retries. A deadline/transport failure after a write can mean the provider already accepted it. Generic HTTP does not invent idempotency semantics; retain a domain request identity and inspect provider state before another action.

GraphQL is not assumed to be a read because it uses a query-looking payload or POST transport. Build the explicit request and inspect both data and errors according to the selected contract. Keep partial-result handling visible to downstream nodes.

## Conditional polling

Conditional Poll is a poll-entry implementation, not a persistent listener. Set the node's entry mode to poll with at least a five-second interval, choose the URL and explicitly enable both workflow and entry. HTTP 304 skips that branch. Other unsuccessful responses throw even when generic failOnHttpError is disabled.

Successful ETag/Last-Modified values commit as node state. A later downstream failure does not roll back the remote ingestion checkpoint. For business ingestion, save accepted payloads/domain IDs into durable storage or a leased queue before relying on later processing. A completed downstream graph and a committed poll cursor are not one transaction.

## Troubleshoot

For repeated full payloads, inspect provider cache-header support and the selected node's state. For skipped 304 events, confirm that no changed content was expected. For long Retry-After, arrange later execution instead of holding a worker. For oversized bodies, reduce provider query/page scope. For uncertain writes, reconcile first.

Read exact envelopes and configuration in the [utility references](/wiki/integration-catalog/). The local HTTP fixtures cover request/timeout/redirect/polling behavior without proving a real provider account or delivery.

---

## Documentation provenance

- `../OpenNodeFlow-Library/work/core/SETUP.md`
- `../OpenNodeFlow-Library/docs/INTEGRATIONS.md`
- `docs/LIBRARY-UTILITIES.md`

This page describes maintained source, not a live inventory or an authorization to perform actions.
