httpexpect

package
v3.0.8-alpha.10+incomp... Latest Latest
Warning

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

Go to latest
Published: May 28, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expect

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

func NewExpect

func NewExpect(t *testing.T) *Expect

func (*Expect) DELETE

func (e *Expect) DELETE(url string) *Request

func (*Expect) GET

func (e *Expect) GET(url string) *Request

func (*Expect) POST

func (e *Expect) POST(url string) *Request

func (*Expect) PUT

func (e *Expect) PUT(url string) *Request

type Request

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

func (*Request) Expect

func (req *Request) Expect(f func(req *restful.Request, resp *restful.Response)) *Response

func (*Request) WithJSON

func (req *Request) WithJSON(data interface{}) *Request

func (*Request) WithJSONRaw

func (req *Request) WithJSONRaw(data []byte) *Request

type Response

type Response struct {
	*httptest.ResponseRecorder
	// contains filtered or unexported fields
}

func (*Response) BodyData

func (resp *Response) BodyData() []byte

Jump to

Keyboard shortcuts

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