Function
apiKey
(options: {
readonly key: string
readonly in?: "header" | "query" | "cookie" | undefined
})
Source from the content-addressed store, hash-verified
| 175 | * @since 4.0.0 |
| 176 | */ |
| 177 | export 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
Tested by
no test coverage detected