testflight: github.com/drewolson/testflight Index | Files | Directories

package testflight

import "github.com/drewolson/testflight"

Index

Package Files

requester.go response.go testflight.go

Constants

const (
    JSON         = "application/json"
    FORM_ENCODED = "application/x-www-form-urlencoded"
)

func WithServer Uses

func WithServer(handler http.Handler, context func(*Requester))

type Requester Uses

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

func (*Requester) Delete Uses

func (requester *Requester) Delete(route, contentType, body string) *Response

func (*Requester) Do Uses

func (requester *Requester) Do(request *http.Request) *Response

func (*Requester) Get Uses

func (requester *Requester) Get(route string) *Response

func (*Requester) Patch Uses

func (requester *Requester) Patch(route, contentType, body string) *Response

func (*Requester) Post Uses

func (requester *Requester) Post(route, contentType, body string) *Response

func (*Requester) Put Uses

func (requester *Requester) Put(route, contentType, body string) *Response

func (*Requester) Url Uses

func (requester *Requester) Url(route string) string

type Response Uses

type Response struct {
    Body        string
    RawBody     []byte
    RawResponse *http.Response
    StatusCode  int
    Header      http.Header
}

Directories

PathSynopsis
ws

Package testflight imports 5 packages (graph) and is imported by 4 packages. Updated 2018-07-20. Refresh now. Tools for package owners.