httpClient

package
Version: v0.0.0-...-67b74e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppenderClient

type AppenderClient struct {
	// contains filtered or unexported fields
}

func (*AppenderClient) AppendBody

func (c *AppenderClient) AppendBody(body interface{}) *AppenderClient

func (*AppenderClient) AppendBodyAsByte

func (c *AppenderClient) AppendBodyAsByte(body []byte) *AppenderClient

func (*AppenderClient) AppendBodyAsString

func (c *AppenderClient) AppendBodyAsString(body string) *AppenderClient

func (*AppenderClient) AppendHeader

func (c *AppenderClient) AppendHeader(key string, value string) *AppenderClient

func (*AppenderClient) BuildRequest

func (c *AppenderClient) BuildRequest() *BuildContext

func (*AppenderClient) BuildRequestWithEcho

func (c *AppenderClient) BuildRequestWithEcho(ctx echo.Context) *BuildContext

func (*AppenderClient) SetContentType

func (c *AppenderClient) SetContentType(contentType string) *AppenderClient

type BuildContext

type BuildContext struct {
	// contains filtered or unexported fields
}

func (*BuildContext) Call

func (c *BuildContext) Call(response interface{}, expectedStatusCodes []StatusCode) (*Response, error)

func (*BuildContext) SetReducer

func (c *BuildContext) SetReducer(name string) *BuildContext

func (*BuildContext) SetResolver

func (c *BuildContext) SetResolver(resolveContextNames ...string) *BuildContext

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewHttpClient

func NewHttpClient() *Client

func (*Client) NewRequest

func (p *Client) NewRequest() *Request

type DependencyReducerContext

type DependencyReducerContext struct {
	Items []DependencyReducerItem `json:"items"`
}

type DependencyReducerItem

type DependencyReducerItem struct {
	Key   string `json:"key"`
	Value []byte `json:"Payload"`
}

type DependencyResolver

type DependencyResolver struct {
	// contains filtered or unexported fields
}

func (*DependencyResolver) ResolveContent

func (c *DependencyResolver) ResolveContent() (string, string)

type DependencySetter

type DependencySetter struct {
	// contains filtered or unexported fields
}

func (*DependencySetter) SetContent

func (c *DependencySetter) SetContent(content interface{})

type Request

type Request struct {
	// contains filtered or unexported fields
}

func (*Request) Delete

func (p *Request) Delete(uri string) *AppenderClient

func (*Request) Get

func (p *Request) Get(uri string) *AppenderClient

func (*Request) Patch

func (p *Request) Patch(uri string) *AppenderClient

func (*Request) Post

func (p *Request) Post(uri string) *AppenderClient

func (*Request) Put

func (p *Request) Put(uri string) *AppenderClient

type Response

type Response struct {
	StatusCode StatusCode
}

type StatusCode

type StatusCode int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL