Versions in this module Expand all Collapse all v1 v1.0.0 May 15, 2020 Changes in this version + const Name + const SchemaHTTP + const SchemaHTTPS + const XForwardedHost + const XForwardedPort + var ErrCanceled = errors.New("request cancelled") + var ErrInvalidResp = errors.New("rest consumer response arg is not *http.Response type") + var ErrNilResponse = errors.New("http response is nil") + var ErrRestFault = errors.New("injecting abort and delay") + var ErrRestFaultAbort = errors.New("injecting abort") + func LocalRequestHandler(w http.ResponseWriter, r *http.Request) + func NewClient(opts client.Options) (client.ProtocolClient, error) + func RecordStatus(inv *invocation.Invocation, statusCode int) + func RemoteRequestHandler(w http.ResponseWriter, r *http.Request) + func WriteErrorResponse(inv *invocation.Invocation, w http.ResponseWriter, r *http.Request, ...) + type Client struct + func (c *Client) Call(ctx context.Context, addr string, inv *invocation.Invocation, rsp interface{}) error + func (c *Client) Close() error + func (c *Client) GetOptions() client.Options + func (c *Client) ReloadConfigs(opts client.Options) + func (c *Client) String() string