ServerRequest

tcmts.server.ServerRequest · #csi2pi6a · type

The HTTP request a server function is answering.

export interface ServerRequest {
  method: string;
  url: string;
  headers: Headers;
  cookies: Record<string, string>;
  /** the client's address, as the socket sees it */
  ip: string | undefined;
  /** aborted when the client disconnects, so long work can stop early */
  signal: AbortSignal;
}

used by