Liking cljdoc? Tell your friends :D
Clojure only.

protojure.grpc.client.providers.http2

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
raw docstring

connectclj

(connect {:keys [uri codecs content-coding max-frame-size]
          :or {codecs builtin-codecs max-frame-size 16384}
          :as params})

Connects the client to a GRPC-HTTP2 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 | 16384 | The maximum HTTP2 DATA frame size |

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.

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_ | 16384   | The maximum HTTP2 DATA frame size                                         |

#### 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.
  
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close