Implements the GRPC-HTTP2 protocol for clients
Implements the [GRPC-HTTP2](https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md) protocol for clients
(connect {:keys [uri codecs content-coding max-frame-size input-buffer-size
metadata idle-timeout ssl]
:or {codecs builtin-codecs
max-frame-size 16384
input-buffer-size jetty/default-input-buffer
ssl false}
:as params})
Connects the client to a GRPC-HTTP2 compatible server
A map with the following entries:
| Value | Type | Default | Description | |-----------------------|---------------|-------------------------------------------------------------------------------------| | uri | String | n/a | The URI of the GRPC server | | codecs | map | [[protojure.grpc.codec.core/builtin-codecs]] | Optional custom codecs | | content-coding | String | nil | The encoding to use on request data | | max-frame-size | UInt32 | 16KB | The maximum HTTP2 DATA frame size | | input-buffer-size | UInt32 | 1MB | The input-buffer size | | metadata | map or fn | n/a | Optional [string string] tuples as a map, or a 0-arity fn that returns same that will be submitted as attributes to the request, such as via HTTP headers for GRPC-HTTP2 |
A promise that, on success, evaluates to an instance of [[api/Provider]]. (api/disconnect) should be used to release any resources when the connection is no longer required.
Connects the client to a [GRPC-HTTP2](https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md) compatible server #### Parameters A map with the following entries: | Value | Type | Default | Description | |-----------------------|---------------|-------------------------------------------------------------------------------------| | **uri** | _String_ | n/a | The URI of the GRPC server | | **codecs** | _map_ | [[protojure.grpc.codec.core/builtin-codecs]] | Optional custom codecs | | **content-coding** | _String_ | nil | The encoding to use on request data | | **max-frame-size** | _UInt32_ | 16KB | The maximum HTTP2 DATA frame size | | **input-buffer-size** | _UInt32_ | 1MB | The input-buffer size | | **metadata** | _map_ or _fn_ | n/a | Optional [string string] tuples as a map, or a 0-arity fn that returns same that will be submitted as attributes to the request, such as via HTTP headers for GRPC-HTTP2 | #### Return value A promise that, on success, evaluates to an instance of [[api/Provider]]. _(api/disconnect)_ should be used to release any resources when the connection is no longer required.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close