Pudu programming language
Menu
Package

@chrismichaelps / pudu-lang-httpclient

Named HTTP clients for Pudu: a client factory, delegating handlers, pooled keep-alive connections, handler lifetimes, logging, and resilience

0.1.1Apache-2.01

InstallClose

Events.pudu

Pudu33 lines1.8 KB

GitHub ↗
1/** @Constants.Events.Module — the templates of every structured log event */2module PuduLangHttpClient.Constants.Events34/// The outer event of a request entering a client's pipeline; its properties are the method and address.5export const PIPELINE_STARTED: Str = "Start processing HTTP request \{Method\} \{Uri\}"67/// The outer event of a request leaving a client's pipeline; its properties are the elapsed milliseconds and status.8export const PIPELINE_ENDED: Str = "End processing HTTP request after \{Elapsed\} ms - \{StatusCode\}"910/// The inner event of a request handed to the primary handler; its properties are the method and address.11export const REQUEST_SENDING: Str = "Sending HTTP request \{Method\} \{Uri\}"1213/// The inner event of a response coming back from the primary handler; its properties are the elapsed milliseconds and status.14export const RESPONSE_RECEIVED: Str = "Received HTTP response headers after \{Elapsed\} ms - \{StatusCode\}"1516/// The event of a request failing; its properties are the method, address, elapsed milliseconds, and failure.17export const REQUEST_FAILED: Str = "HTTP request \{Method\} \{Uri\} failed after \{Elapsed\} ms: \{Failure\}"1819/// The verbose event listing a request's headers, redacted; its property is the headers.20export const REQUEST_HEADERS: Str = "Request headers: \{Headers\}"2122/// The verbose event listing a response's headers, redacted; its property is the headers.23export const RESPONSE_HEADERS: Str = "Response headers: \{Headers\}"2425/// The source suffix of the events around a whole pipeline.26export const LOGICAL_HANDLER: Str = "LogicalHandler"2728/// The source suffix of the events around the primary handler.29export const CLIENT_HANDLER: Str = "ClientHandler"3031/// The source prefix every event's source starts with.32export const SOURCE_ROOT: Str = "PuduLangHttpClient"33