MCPcopy Create free account
hub / github.com/Effect-TS/effect / apiKey

Function apiKey

packages/effect/src/unstable/httpapi/HttpApiSecurity.ts:177–186  ·  view source on GitHub ↗
(options: {
  readonly key: string
  readonly in?: "header" | "query" | "cookie" | undefined
})

Source from the content-addressed store, hash-verified

175 * @since 4.0.0
176 */
177export const apiKey = (options: {
178 readonly key: string
179 readonly in?: "header" | "query" | "cookie" | undefined
180}): ApiKey =>
181 Object.assign(Object.create(Proto), {
182 _tag: "ApiKey",
183 key: options.key,
184 in: options.in ?? "header",
185 annotations: Context.empty()
186 })
187
188/**
189 * Creates an HTTP Basic authentication security scheme.

Callers

nothing calls this directly

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected