willie: github.com/markbates/willie Index | Files

package willie

import "github.com/markbates/willie"

Index

Package Files

file.go json.go request.go response.go willy.go xml.go

type File Uses

type File struct {
    io.Reader
    ParamName string
    FileName  string
}

type JSON Uses

type JSON struct {
    URL      string
    Willie   *Willie
    Headers  map[string]string
    Username string
    Password string
}

func (*JSON) Delete Uses

func (r *JSON) Delete() *JSONResponse

func (*JSON) Get Uses

func (r *JSON) Get() *JSONResponse

func (*JSON) Patch Uses

func (r *JSON) Patch(body interface{}) *JSONResponse

func (*JSON) Post Uses

func (r *JSON) Post(body interface{}) *JSONResponse

func (*JSON) Put Uses

func (r *JSON) Put(body interface{}) *JSONResponse

type JSONResponse Uses

type JSONResponse struct {
    *Response
}

func (*JSONResponse) Bind Uses

func (r *JSONResponse) Bind(x interface{})

type Request Uses

type Request struct {
    URL      string
    Willie   *Willie
    Headers  map[string]string
    Username string
    Password string
}

func (*Request) Delete Uses

func (r *Request) Delete() *Response

func (*Request) Get Uses

func (r *Request) Get() *Response

func (*Request) MultiPartPost Uses

func (r *Request) MultiPartPost(body interface{}, files ...File) (*Response, error)

func (*Request) MultiPartPut Uses

func (r *Request) MultiPartPut(body interface{}, files ...File) (*Response, error)

func (*Request) Post Uses

func (r *Request) Post(body interface{}) *Response

func (*Request) Put Uses

func (r *Request) Put(body interface{}) *Response

func (*Request) SetBasicAuth Uses

func (r *Request) SetBasicAuth(username, password string)

type Response Uses

type Response struct {
    *httptest.ResponseRecorder
}

func (*Response) CloseNotify Uses

func (r *Response) CloseNotify() <-chan bool

func (*Response) Location Uses

func (r *Response) Location() string

type Willie Uses

type Willie struct {
    http.Handler
    Cookies    string
    Headers    map[string]string
    HmaxSecret string
}

func New Uses

func New(h http.Handler) *Willie

func (*Willie) HTML Uses

func (w *Willie) HTML(u string, args ...interface{}) *Request

func (*Willie) JSON Uses

func (w *Willie) JSON(u string, args ...interface{}) *JSON

func (*Willie) Request Uses

func (w *Willie) Request(u string, args ...interface{}) *Request

func (*Willie) XML Uses

func (w *Willie) XML(u string, args ...interface{}) *XML

type XML Uses

type XML struct {
    URL     string
    Willie  *Willie
    Headers map[string]string
}

func (*XML) Delete Uses

func (r *XML) Delete() *XMLResponse

func (*XML) Get Uses

func (r *XML) Get() *XMLResponse

func (*XML) Patch Uses

func (r *XML) Patch(body interface{}) *XMLResponse

func (*XML) Post Uses

func (r *XML) Post(body interface{}) *XMLResponse

func (*XML) Put Uses

func (r *XML) Put(body interface{}) *XMLResponse

type XMLResponse Uses

type XMLResponse struct {
    *Response
}

func (*XMLResponse) Bind Uses

func (r *XMLResponse) Bind(x interface{})

Package willie imports 16 packages (graph) and is imported by 1 packages. Updated 2018-08-28. Refresh now. Tools for package owners.