(client: HttpClient.HttpClient, options?: {
readonly batch?: {
readonly window: Duration.Input
readonly maxSize?: number | undefined
} | undefined
})
| 976 | * @since 4.0.0 |
| 977 | */ |
| 978 | export const makeProtocolHttp = (client: HttpClient.HttpClient, options?: { |
| 979 | readonly batch?: { |
| 980 | readonly window: Duration.Input |
| 981 | readonly maxSize?: number | undefined |
| 982 | } | undefined |
| 983 | }): Effect.Effect< |
| 984 | Protocol["Service"], |
| 985 | never, |
| 986 | RpcSerialization.RpcSerialization |
| 987 | > => options?.batch ? makeProtocolHttpBatched(client, options.batch) : makeProtocolHttpUnbatched(client) |
| 988 | |
| 989 | const makeProtocolHttpUnbatched = (client: HttpClient.HttpClient) => |
| 990 | Protocol.make(Effect.fnUntraced(function*(writeResponse) { |
no test coverage detected