Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
716 B ยท 28 lines
TypeScript
1234567891011121314151617181920212223242526272829export { assertSafeUrl, assertSafeUrlSync, safeUrlSchema } from "./ssrf";export { httpPayloadSchema, type HttpPayload, tpcPayloadSchema, type TcpPayload, DNSPayloadSchema, type DNSPayload,} from "./payloads";export { MONITOR_METHODS, MONITOR_STATUSES, MONITOR_JOB_TYPES,} from "./constants";export { yieldMany, iteratorToStream } from "./stream";export { statusLabel, type PageUpdateStatus } from "./status";
export function transformHeaders(headers: { key: string; value: string }[]) { return headers.length > 0 ? headers.reduce( (acc, curr) => { acc[curr.key] = curr.value; return acc; }, {} as Record<string, string>, ) : {};}