(data: Effect.Effect<A, E, R>)
| 13 | ) {} |
| 14 | |
| 15 | export function response<A, E, R>(data: Effect.Effect<A, E, R>) { |
| 16 | return Effect.gen(function* () { |
| 17 | const location = yield* Location.Service |
| 18 | return { |
| 19 | location: new Location.Info({ |
| 20 | directory: location.directory, |
| 21 | workspaceID: location.workspaceID, |
| 22 | project: location.project, |
| 23 | }), |
| 24 | data: yield* data, |
| 25 | } |
| 26 | }) |
| 27 | } |
| 28 | |
| 29 | function ref(request: HttpServerRequest.HttpServerRequest): Location.Ref { |
| 30 | const query = new URL(request.url, "http://localhost").searchParams |
no outgoing calls
no test coverage detected