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