MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / setResponseCookie

Function setResponseCookie

apps/cloud/src/auth/handlers.ts:136–141  ·  view source on GitHub ↗
(
  response: HttpServerResponse.HttpServerResponse,
  name: string,
  value: string,
  options: typeof RESPONSE_COOKIE_OPTIONS,
)

Source from the content-addressed store, hash-verified

134};
135
136const setResponseCookie = (
137 response: HttpServerResponse.HttpServerResponse,
138 name: string,
139 value: string,
140 options: typeof RESPONSE_COOKIE_OPTIONS,
141) => HttpServerResponse.setCookieUnsafe(response, name, value, options);
142
143const deleteResponseCookie = (response: HttpServerResponse.HttpServerResponse, name: string) =>
144 HttpServerResponse.setCookieUnsafe(response, name, "", DELETE_COOKIE_OPTIONS);

Callers 1

handlers.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected