View Source GRPC.Client.Adapters.Mint (grpc v0.9.0)

A client adapter using Mint.

Summary

Functions

Link to this function

check_for_error(responses)

View Source
Link to this function

connect(channel, opts \\ [])

View Source

Connects using Mint based on the provided configs. Options

  • :transport_opts: Defaults to [timeout: :infinity], given the nature of H2 connections (with support to long-lived streams) this default is set to avoid timeouts while waiting for server streams to complete. The other options may vary based on the transport used for this connection (tcp or ssl). Check Mint.HTTP.connect/4
  • :client_settings: Defaults to [initial_window_size: 8_000_000, max_frame_size: 8_000_000], a larger default window size ensures that the number of packages exchanges is smaller, thus speeding up the requests by reducing the amount of networks round trip, with the cost of having larger packages reaching the server per connection. Check Mint.HTTP2.setting() type for additional configs.
Link to this function

handle_errors_receive_data(stream, opts)

View Source