http2-grpc-types-0.2.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 = ByteString Source #

HTTP2 Header Key.

type HeaderValue = ByteString Source #

HTTP2 Header Value.

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 -> ByteString Source #

Returns the HTTP2 :path for a given RPC.

newtype Timeout Source #

Timeout in seconds.

Constructors

Timeout Int 

type Authority = ByteString Source #

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