Expand description
The http-logger node — ships access logs to an arbitrary HTTP endpoint
in batches.
Ports the APISIX http-logger plugin onto featherbit’s shared
BatchSink and pooled outbound HTTP client.
Each request builds a log entry via
build_entry and hands it
to the sink with a non-blocking, fire-and-forget push; a background task
POSTs accumulated batches to uri. The node never mutates the
request/response and never fails, so it belongs in the response pipeline,
after the upstream node, where the final status/body are available.
Structs§
- Http
Logger 🔒Flusher - Delivers batches by POSTing them to the configured HTTP endpoint.
- Http
Logger Plugin - Batches access-log entries and POSTs them to an HTTP endpoint.
Enums§
- Concat
Method 🔒 - How batched entries are serialized into the request body.
Functions§
- build_
http_ 🔒body - Serializes a batch into an HTTP body plus its
Content-Type. Factored out of the network path so payload shaping is unit-testable without a socket. - header_
value 🔒 - Coerces a JSON scalar to a header string;
Nonefor non-scalars.