http2-grpc-types-0.3.0.0: Types for gRPC over HTTP2 common for client and servers.

Safe HaskellNone
LanguageHaskell2010

Network.GRPC.HTTP2.Types

Description

Module for GRPC <> HTTP2 mapping.

Synopsis

Documentation

type HeaderKey = CI ByteString Source #

HTTP2 Header Key.

type HeaderValue = ByteString Source #

HTTP2 Header Value.

trailers :: GRPCStatus -> [(HeaderKey, HeaderValue)] Source #

Trailers for a GRPCStatus.

data RPC (s :: *) (m :: Symbol) Source #

A proxy type for giving static information about RPCs.

Constructors

RPC 

path :: (Service s, HasMethod s m) => RPC s m -> HeaderValue Source #

Returns the HTTP2 :path for a given RPC.

newtype Timeout Source #

Timeout in seconds.

Constructors

Timeout Int 

type Authority = HeaderValue Source #

The HTTP2-Authority portion of an URL (e.g., "dicioccio.fr:7777").