Documentation ¶
Index ¶
- Constants
- type Client
- func (client *Client) CONNECT(url string) *Request
- func (client *Client) CleanAllCookies() *Client
- func (client *Client) DELETE(url string) *Request
- func (client *Client) GET(url string) *Request
- func (client *Client) GetContext() *context.Context
- func (client *Client) GetCookies(u *url.URL) []*http.Cookie
- func (client *Client) HEAD(url string) *Request
- func (client *Client) OPTIONS(url string) *Request
- func (client *Client) PATCH(url string) *Request
- func (client *Client) POST(url string) *Request
- func (client *Client) PUT(url string) *Request
- func (client *Client) TRACE(url string) *Request
- type Environment
- func (environment *Environment) Get(key string) interface{}
- func (environment *Environment) GetBool(key string) bool
- func (environment *Environment) GetDuration(key string) time.Duration
- func (environment *Environment) GetFloat64(key string) float64
- func (environment *Environment) GetInt(key string) int
- func (environment *Environment) GetInt32(key string) int32
- func (environment *Environment) GetInt64(key string) int64
- func (environment *Environment) GetIntSlice(key string) []int
- func (environment *Environment) GetString(key string) string
- func (environment *Environment) GetStringMap(key string) map[string]interface{}
- func (environment *Environment) GetStringSlice(key string) []string
- func (environment *Environment) GetTime(key string) time.Time
- func (environment *Environment) GetUint(key string) uint
- func (environment *Environment) GetUint32(key string) uint32
- func (environment *Environment) GetUint64(key string) uint64
- type Request
- func (r *Request) Expect() *Response
- func (r *Request) WithBody(value []byte) *Request
- func (r *Request) WithCookie(cookie *http.Cookie) *Request
- func (r *Request) WithHeader(key string, value string) *Request
- func (r *Request) WithHeaders(headers map[string]string) *Request
- func (r *Request) WithJson(object interface{}) *Request
- func (r *Request) WithPathVariable(name string, value string) *Request
- func (r *Request) WithRequestParameter(name string, value string) *Request
- func (r *Request) WithText(text string) *Request
- func (r *Request) WithXml(object interface{}) *Request
- type Response
- func (r *Response) Body(expects ...body.Expect) *ResponseQuery
- func (r *Response) ContentLength(expects ...clength.Expect) *Response
- func (r *Response) ContentType(expects ...ctype.Expect) *Response
- func (r *Response) ElapsedTime(expects ...duration.Expect) *Response
- func (r *Response) Header(expects ...header.Expect) *Response
- func (r *Response) Headers(expects ...headers.Expect) *Response
- func (r *Response) Raw() *http.Response
- func (r *Response) Status(expects ...status.Expect) *Response
- type ResponseQuery
Constants ¶
View Source
const ( EnvironmentKey = "API_MASTER_ENV" EnvironmentFilePathKey = "API_MASTER_ENV_FILE_PATH" EnvironmentFilePrefix = "env" EnvironmentFileType = "yaml" DefaultEnvironmentFilePath = "." )
View Source
const ( ContentTypeApplicationJson = "application/json" ContentTypeApplicationXml = "application/xml" ContentTypeTextPlain = "text/plain" )
View Source
const HeaderContentType = "Content-Type"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CleanAllCookies ¶
func (*Client) GetContext ¶
type Environment ¶
type Environment struct { }
func GetEnvironment ¶
func GetEnvironment() *Environment
func (*Environment) Get ¶
func (environment *Environment) Get(key string) interface{}
func (*Environment) GetBool ¶
func (environment *Environment) GetBool(key string) bool
func (*Environment) GetDuration ¶
func (environment *Environment) GetDuration(key string) time.Duration
func (*Environment) GetFloat64 ¶
func (environment *Environment) GetFloat64(key string) float64
func (*Environment) GetInt ¶
func (environment *Environment) GetInt(key string) int
func (*Environment) GetInt32 ¶
func (environment *Environment) GetInt32(key string) int32
func (*Environment) GetInt64 ¶
func (environment *Environment) GetInt64(key string) int64
func (*Environment) GetIntSlice ¶
func (environment *Environment) GetIntSlice(key string) []int
func (*Environment) GetString ¶
func (environment *Environment) GetString(key string) string
func (*Environment) GetStringMap ¶
func (environment *Environment) GetStringMap(key string) map[string]interface{}
func (*Environment) GetStringSlice ¶
func (environment *Environment) GetStringSlice(key string) []string
func (*Environment) GetUint ¶
func (environment *Environment) GetUint(key string) uint
func (*Environment) GetUint32 ¶
func (environment *Environment) GetUint32(key string) uint32
func (*Environment) GetUint64 ¶
func (environment *Environment) GetUint64(key string) uint64
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) WithPathVariable ¶
func (*Request) WithRequestParameter ¶
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func (*Response) ContentLength ¶
type ResponseQuery ¶
type ResponseQuery struct {
// contains filtered or unexported fields
}
func (*ResponseQuery) JsonQuery ¶
func (responseQuery *ResponseQuery) JsonQuery() *jsonq.JsonQuery
func (*ResponseQuery) StringQuery ¶
func (responseQuery *ResponseQuery) StringQuery() *stringq.StringQuery
Click to show internal directories.
Click to hide internal directories.