Skip to main content
Server Source code Package

Fetch

Web Standard Fetch API source for walkerOS. Platform-agnostic (Request) => Response signature that runs on Cloudflare Workers, Vercel Edge, Deno, Bun, and Node.js 18+. Supports batch processing, configurable CORS, and pixel tracking via a 1x1 transparent GIF for GET requests.

Where this fits

The Fetch source is a server source in the walkerOS flow:

It receives events via the Fetch API and forwards them to your destinations. Works on any platform supporting Web Standards.

Installation

Loading...
path setting renamed to paths

The path setting has been renamed to paths (array). The old path still works but is deprecated and will be removed in the next major version.

// Before (deprecated)
settings: { path: '/events' }

// After
settings: { paths: ['/events'] }

Cloudflare Workers

Loading...

Configuration

This source uses the standard source config wrapper (consent, data, env, id, ...). For the shared fields see source configuration. Package-specific fields live under config.settings and are listed below.

Settings

PropertyTypeDescriptionMore
pathstringDeprecated: use paths instead
pathsArray<any>Route paths to handle. String shorthand accepts GET+POST. RouteConfig allows per-route method control.
cors*boolean | objectCORS configuration: false = disabled, true = allow all (default), object = custom
maxRequestSize*integerMaximum request body size in bytes
maxBatchSize*integerMaximum events per batch request
* Required fields

Mapping

This package does not define custom rule-level settings. For the standard rule fields (consent, condition, data, batch, name, policy) see mapping.

Examples

Batch POST

A fetch POST with a batch array produces one walker elb event per batched item preserving order.

Event
Out

Pixel GET

A fetch GET with query parameters in the URL is parsed into an elb event payload for pixel-style tracking.

Event
Out

POST event

A fetch POST request with a JSON body becomes a single walker elb event in a fetch-based server.

Event
Out

Ingest metadata

Extract request metadata and forward it through the pipeline.

Loading...

Available ingest paths

PathDescription
urlFull request URL
headers.get('name')Via function: { fn: (req) => req.headers.get('name') }
note

The Fetch API uses Request objects where headers are accessed via .get() method. Use mapping functions for header extraction.

Usage

Single event

Loading...

Batch events

Loading...
💡 Need implementation support?
elbwalker offers hands-on support: setup review, measurement planning, destination mapping, and live troubleshooting. Book a 2-hour session (€399)