{"uid":"cap_PawiBUHTD1S0gK6BmeJmN","slug":"delx-header-map-normalize-73e5b934","name":"Delx Header Map Normalize","description":"Lowercase HTTP header keys and drop hop-by-hop headers — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that already converte…","url":"https://api.delx.ai/api/v1/x402/header-map-normalize","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"headers":{"type":"object","description":"Input field: headers."}}},"responseSchema":{"type":"json","example":{"ok":true,"count":1,"schema":"delx/util-header-map-normalize/v1","dropped":["connection"],"headers":{"content-type":"application/json"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZFFiV9L6Srdtpu-byGGOa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Lowercases all HTTP header keys and removes hop-by-hop headers from a provided headers object, returning a normalized headers map as JSON.","exampleAgentPrompt":"Normalize these HTTP headers by lowercasing all the keys and dropping any hop-by-hop headers: {\"Content-Type\": \"application/json\", \"Transfer-Encoding\": \"chunked\", \"Authorization\": \"Bearer abc123\", \"Connection\": \"keep-alive\"}.","exampleUseCases":[{"title":"Agent preflight header sanitization","prompt":"Before I forward this request to a downstream service, can you normalize these headers — lowercase all keys and strip out any hop-by-hop headers like Connection and Transfer-Encoding: {\"X-Request-ID\": \"abc\", \"Transfer-Encoding\": \"chunked\", \"Content-Type\": \"application/json\", \"Connection\": \"keep-alive\"}?"},{"title":"Canonical header comparison for deduplication","prompt":"I need to compare headers across multiple requests but the casing is inconsistent. Can you normalize this headers map so all keys are lowercased and hop-by-hop headers are removed: {\"Content-Type\": \"text/html\", \"Keep-Alive\": \"timeout=5\", \"Cache-Control\": \"no-cache\"}?"},{"title":"Proxy forwarding header cleanup","prompt":"My proxy needs to forward a request but first I need to strip connection-level headers and normalize all keys to lowercase. Here are the headers: {\"Authorization\": \"Bearer token123\", \"Upgrade\": \"websocket\", \"Content-Length\": \"348\", \"Connection\": \"Upgrade\"}."}],"resultDescription":"A JSON object containing the normalized headers map with all keys converted to lowercase and hop-by-hop headers (such as Connection, Transfer-Encoding, Keep-Alive, Upgrade, Proxy-Authenticate, etc.) removed, leaving only the safe-to-forward, canonically cased headers.","failureModes":["Missing or empty headers object returns an error or empty result","Malformed JSON input returns a parse error","Non-string header values may cause unexpected behavior","Network timeout if the service is temporarily unavailable","Payment failure via x402 if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, stateless, low-cost utility to normalize HTTP headers — specifically to lowercase keys and strip hop-by-hop headers — as part of an agent preflight step or request pipeline. Prefer it over writing custom normalization logic when you want a consistent, machine-readable JSON result without side effects or external dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:53:13.205Z","isFirstParty":false}