Documentation ¶
Index ¶
- func NewHttpError(statusCode int, statusText string) error
- type Client
- func (c *Client) BasicAuth(user, pass string) *Client
- func (c *Client) Clone() *Client
- func (c *Client) ConnectBytes(ctx context.Context, url string, data ...interface{}) ([]byte, error)
- func (c *Client) ConnectContent(ctx context.Context, url string, data ...interface{}) (string, error)
- func (c *Client) ConnectEventSource(ctx context.Context, url string, data ...interface{}) EventSource
- func (c *Client) ConnectVar(ctx context.Context, url string, data ...interface{}) (*gvar.Var, error)
- func (c *Client) ContentForm() *Client
- func (c *Client) ContentJson() *Client
- func (c *Client) ContentType(contentType string) *Client
- func (c *Client) ContentXml() *Client
- func (c *Client) Cookie(key, value string) *Client
- func (c *Client) CookieMap(m map[string]string) *Client
- func (c *Client) DeleteBytes(ctx context.Context, url string, data ...interface{}) ([]byte, error)
- func (c *Client) DeleteContent(ctx context.Context, url string, data ...interface{}) (string, error)
- func (c *Client) DeleteEventSource(ctx context.Context, url string, data ...interface{}) EventSource
- func (c *Client) DeleteVar(ctx context.Context, url string, data ...interface{}) (*gvar.Var, error)
- func (c *Client) Discovery(discovery gsvc.Discovery) *Client
- func (c *Client) DoRawContentRequest(ctx context.Context, content string) (response *http.Response, err error)
- func (c *Client) DoRawFnRequest(ctx context.Context, rawFn func(context.Context) (string, error)) (response *http.Response, err error)
- func (c *Client) DoTmplRequest(ctx context.Context, view *gviewx.View, key string, params ...gview.Params) (*http.Response, error)
- func (c *Client) EventSource(ctx context.Context, method string, url string, data ...interface{}) EventSource
- func (c *Client) GetBasicAuth() (string, string)
- func (c *Client) GetBytes(ctx context.Context, url string, data ...interface{}) ([]byte, error)
- func (c *Client) GetContent(ctx context.Context, url string, data ...interface{}) (string, error)
- func (c *Client) GetCookie(key string) string
- func (c *Client) GetCookieMap() map[string]string
- func (c *Client) GetEventSource(ctx context.Context, url string, data ...interface{}) EventSource
- func (c *Client) GetHeader(key string) string
- func (c *Client) GetHeaderMap() map[string]string
- func (c *Client) GetPrefix() string
- func (c *Client) GetVar(ctx context.Context, url string, data ...interface{}) (*gvar.Var, error)
- func (c *Client) HeadBytes(ctx context.Context, url string, data ...interface{}) ([]byte, error)
- func (c *Client) HeadContent(ctx context.Context, url string, data ...interface{}) (string, error)
- func (c *Client) HeadEventSource(ctx context.Context, url string, data ...interface{}) EventSource
- func (c *Client) HeadVar(ctx context.Context, url string, data ...interface{}) (*gvar.Var, error)
- func (c *Client) Header(key, value string) *Client
- func (c *Client) HeaderMap(m map[string]string) *Client
- func (c *Client) HeaderRaw(headers string) *Client
- func (c *Client) NoUrlEncode() *Client
- func (c *Client) OptionsBytes(ctx context.Context, url string, data ...interface{}) ([]byte, error)
- func (c *Client) OptionsContent(ctx context.Context, url string, data ...interface{}) (string, error)
- func (c *Client) OptionsEventSource(ctx context.Context, url string, data ...interface{}) EventSource
- func (c *Client) OptionsVar(ctx context.Context, url string, data ...interface{}) (*gvar.Var, error)
- func (c *Client) PatchBytes(ctx context.Context, url string, data ...interface{}) ([]byte, error)
- func (c *Client) PatchContent(ctx context.Context, url string, data ...interface{}) (string, error)
- func (c *Client) PatchEventSource(ctx context.Context, url string, data ...interface{}) EventSource
- func (c *Client) PatchVar(ctx context.Context, url string, data ...interface{}) (*gvar.Var, error)
- func (c *Client) PostBytes(ctx context.Context, url string, data ...interface{}) ([]byte, error)
- func (c *Client) PostContent(ctx context.Context, url string, data ...interface{}) (string, error)
- func (c *Client) PostEventSource(ctx context.Context, url string, data ...interface{}) EventSource
- func (c *Client) PostVar(ctx context.Context, url string, data ...interface{}) (*gvar.Var, error)
- func (c *Client) Prefix(prefix string) *Client
- func (c *Client) Proxy(proxyURL string) *Client
- func (c *Client) PutBytes(ctx context.Context, url string, data ...interface{}) ([]byte, error)
- func (c *Client) PutContent(ctx context.Context, url string, data ...interface{}) (string, error)
- func (c *Client) PutEventSource(ctx context.Context, url string, data ...interface{}) EventSource
- func (c *Client) PutVar(ctx context.Context, url string, data ...interface{}) (*gvar.Var, error)
- func (c *Client) RawContentEventSource(ctx context.Context, content string) EventSource
- func (c *Client) RawContentRequestBytes(ctx context.Context, content string) ([]byte, error)
- func (c *Client) RawContentRequestContent(ctx context.Context, content string) (string, error)
- func (c *Client) RawContentRequestVar(ctx context.Context, content string) (*gvar.Var, error)
- func (c *Client) RawFnEventSource(ctx context.Context, rawFn func(context.Context) (string, error)) EventSource
- func (c *Client) RawFnRequestBytes(ctx context.Context, rawFn func(context.Context) (string, error)) ([]byte, error)
- func (c *Client) RawFnRequestContent(ctx context.Context, rawFn func(context.Context) (string, error)) (string, error)
- func (c *Client) RawFnRequestVar(ctx context.Context, rawFn func(context.Context) (string, error)) (*gvar.Var, error)
- func (c *Client) RedirectLimit(redirectLimit int) *Client
- func (c *Client) RequestBytes(ctx context.Context, method string, url string, data ...interface{}) ([]byte, error)
- func (c *Client) RequestContent(ctx context.Context, method string, url string, data ...interface{}) (string, error)
- func (c *Client) RequestVar(ctx context.Context, method string, url string, data ...interface{}) (*gvar.Var, error)
- func (c *Client) SetIntLog(intlog *glog.Logger) *Client
- func (c *Client) Timeout(t time.Duration) *Client
- func (c *Client) TmplEventSource(ctx context.Context, view *gviewx.View, key string, params ...gview.Params) EventSource
- func (c *Client) TmplRequestBytes(ctx context.Context, view *gviewx.View, key string, params ...gview.Params) ([]byte, error)
- func (c *Client) TmplRequestContent(ctx context.Context, view *gviewx.View, key string, params ...gview.Params) (string, error)
- func (c *Client) TmplRequestVar(ctx context.Context, view *gviewx.View, key string, params ...gview.Params) (*gvar.Var, error)
- func (c *Client) TraceBytes(ctx context.Context, url string, data ...interface{}) ([]byte, error)
- func (c *Client) TraceContent(ctx context.Context, url string, data ...interface{}) (string, error)
- func (c *Client) TraceEventSource(ctx context.Context, url string, data ...interface{}) EventSource
- func (c *Client) TraceVar(ctx context.Context, url string, data ...interface{}) (*gvar.Var, error)
- type Event
- type EventSource
- type HttpError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpError ¶ added in v0.8.1
Types ¶
type Client ¶
func (*Client) ConnectBytes ¶ added in v0.8.0
func (*Client) ConnectContent ¶ added in v0.8.0
func (*Client) ConnectEventSource ¶ added in v0.4.3
func (c *Client) ConnectEventSource(ctx context.Context, url string, data ...interface{}) EventSource
func (*Client) ConnectVar ¶ added in v0.8.0
func (*Client) ContentForm ¶ added in v0.3.1
func (*Client) ContentJson ¶ added in v0.3.1
func (*Client) ContentType ¶ added in v0.3.1
func (*Client) ContentXml ¶ added in v0.3.1
func (*Client) DeleteBytes ¶ added in v0.8.0
func (*Client) DeleteContent ¶ added in v0.8.0
func (*Client) DeleteEventSource ¶ added in v0.4.3
func (c *Client) DeleteEventSource(ctx context.Context, url string, data ...interface{}) EventSource
func (*Client) DoRawContentRequest ¶ added in v0.8.5
func (*Client) DoRawFnRequest ¶ added in v0.8.5
func (*Client) DoTmplRequest ¶ added in v0.8.4
func (*Client) EventSource ¶ added in v0.4.3
func (*Client) GetBasicAuth ¶ added in v0.8.7
func (*Client) GetContent ¶
func (*Client) GetCookieMap ¶ added in v0.8.7
func (*Client) GetEventSource ¶ added in v0.4.3
func (c *Client) GetEventSource(ctx context.Context, url string, data ...interface{}) EventSource
func (*Client) GetHeaderMap ¶ added in v0.8.7
func (*Client) HeadContent ¶ added in v0.8.0
func (*Client) HeadEventSource ¶ added in v0.4.3
func (c *Client) HeadEventSource(ctx context.Context, url string, data ...interface{}) EventSource
func (*Client) NoUrlEncode ¶ added in v0.3.1
func (*Client) OptionsBytes ¶ added in v0.8.0
func (*Client) OptionsContent ¶ added in v0.8.0
func (*Client) OptionsEventSource ¶ added in v0.4.3
func (c *Client) OptionsEventSource(ctx context.Context, url string, data ...interface{}) EventSource
func (*Client) OptionsVar ¶ added in v0.8.0
func (*Client) PatchBytes ¶ added in v0.8.0
func (*Client) PatchContent ¶ added in v0.8.0
func (*Client) PatchEventSource ¶ added in v0.4.3
func (c *Client) PatchEventSource(ctx context.Context, url string, data ...interface{}) EventSource
func (*Client) PostContent ¶
func (*Client) PostEventSource ¶ added in v0.4.3
func (c *Client) PostEventSource(ctx context.Context, url string, data ...interface{}) EventSource
func (*Client) PutContent ¶ added in v0.8.0
func (*Client) PutEventSource ¶ added in v0.4.3
func (c *Client) PutEventSource(ctx context.Context, url string, data ...interface{}) EventSource
func (*Client) RawContentEventSource ¶ added in v0.8.5
func (c *Client) RawContentEventSource(ctx context.Context, content string) EventSource
func (*Client) RawContentRequestBytes ¶ added in v0.8.5
func (*Client) RawContentRequestContent ¶ added in v0.8.5
func (*Client) RawContentRequestVar ¶ added in v0.8.5
func (*Client) RawFnEventSource ¶ added in v0.8.5
func (*Client) RawFnRequestBytes ¶ added in v0.8.5
func (*Client) RawFnRequestContent ¶ added in v0.8.5
func (*Client) RawFnRequestVar ¶ added in v0.8.5
func (*Client) RedirectLimit ¶ added in v0.3.1
func (*Client) RequestBytes ¶
func (*Client) RequestContent ¶
func (*Client) RequestVar ¶ added in v0.8.0
func (*Client) TmplEventSource ¶ added in v0.8.4
func (*Client) TmplRequestBytes ¶ added in v0.8.4
func (*Client) TmplRequestContent ¶ added in v0.8.4
func (*Client) TmplRequestVar ¶ added in v0.8.4
func (*Client) TraceBytes ¶ added in v0.8.0
func (*Client) TraceContent ¶ added in v0.8.0
func (*Client) TraceEventSource ¶ added in v0.4.3
func (c *Client) TraceEventSource(ctx context.Context, url string, data ...interface{}) EventSource
type EventSource ¶ added in v0.4.3
Source Files ¶
- gclientx.go
- gclientx_bytes.go
- gclientx_bytes_conv_x.go
- gclientx_chain_x.go
- gclientx_content.go
- gclientx_content_conv_x.go
- gclientx_error.go
- gclientx_event_source.go
- gclientx_event_source_conv_x.go
- gclientx_event_source_internal.go
- gclientx_intlog_x.go
- gclientx_private.go
- gclientx_request_raw.go
- gclientx_request_raw_content.go
- gclientx_request_tmpl.go
- gclientx_var.go
- gclientx_var_conv_x.go
Click to show internal directories.
Click to hide internal directories.