client

package
v0.0.0-...-607a5b3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestHTTPClient

func NewTestHTTPClient(url string) *httpClient

func NewTestHTTPClientWithTimeout

func NewTestHTTPClientWithTimeout(url string, timeout int) *httpClient

func NewTestTCPClient

func NewTestTCPClient(url string) *tcpClient

Types

type Response

type Response struct {
	Status          int                `json:"-"`
	ResponseHeader  http.Header        `json:"-"`
	Type            string             `json:"type,omitempty"`
	PodName         string             `json:"podName,omitempty"`
	Host            string             `json:"host,omitempty"`
	ServerPort      string             `json:"serverPort,omitempty"`
	Path            string             `json:"path,omitempty"`
	Method          string             `json:"method,omitempty"`
	RequestHeaders  http.Header        `json:"headers,omitempty"`
	Body            string             `json:"body,omitempty"`
	HTTPSServerName string             `json:"-"`
	Proxy           *proxyproto.Header `json:"proxy,omitempty"`
	Cookies         []*http.Cookie     `json:"cookies,omitempty"`
}

func (Response) String

func (r Response) String() string

Jump to

Keyboard shortcuts

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