(http: HttpClient.HttpClient, url: string, token: string, schema: S)
| 289 | } |
| 290 | |
| 291 | function get<S extends Schema.Top>(http: HttpClient.HttpClient, url: string, token: string, schema: S) { |
| 292 | return HttpClient.filterStatusOk(http) |
| 293 | .execute(HttpClientRequest.get(url).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token))) |
| 294 | .pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(schema))) |
| 295 | } |
| 296 | |
| 297 | function post<S extends Schema.Top>( |
| 298 | http: HttpClient.HttpClient, |
no test coverage detected