(authorization: string, security: Security)
| 4 | import { HttpApiBuilder, HttpApiSecurity } from "effect/unstable/httpapi" |
| 5 | |
| 6 | const decode = <Security extends HttpApiSecurity.HttpApiSecurity>(authorization: string, security: Security) => |
| 7 | HttpApiBuilder.securityDecode(security).pipe( |
| 8 | Effect.provideService( |
| 9 | HttpServerRequest.HttpServerRequest, |
| 10 | HttpServerRequest.fromWeb(new Request("http://localhost/", { headers: { authorization } })) |
| 11 | ), |
| 12 | Effect.provideService(HttpServerRequest.ParsedSearchParams, {}) |
| 13 | ) |
| 14 | |
| 15 | describe("HttpApiSecurity", () => { |
| 16 | describe("securityDecode", () => { |
no test coverage detected