Versions in this module Expand all Collapse all v0 v0.1.1 Jan 11, 2021 v0.1.0 Sep 14, 2020 Changes in this version + const ContentType + func DefaultHeaders() http.Header + func GzipCompress(ctx context.Context, path string, headers http.Header, r io.Reader) (*http.Request, error) + type Compressor func(ctx context.Context, path string, headers http.Header, r io.Reader) (*http.Request, error) + type Decompressor func(r io.Reader) io.Reader + type GRPC struct + func New(endpoint *url.URL, options ...Option) *GRPC + func (g *GRPC) Call(ctx context.Context, path string, args proto.Message, result proto.Message) error + type Option func(g *GRPC) + func CompressRequests(h Compressor) Option + func CustomClient(h *http.Client) Option + func CustomHeaders(header http.Header) Option + func DecompressResponse(acceptEncoding string, h Decompressor) Option