Documentation
¶
Index ¶
- type Func
- func CONNECT(v ...builder.Option) Func
- func DELETE(v ...builder.Option) Func
- func GET(v ...builder.Option) Func
- func HEAD(v ...builder.Option) Func
- func New(method string, options ...builder.Option) Func
- func OPTIONS(v ...builder.Option) Func
- func PATCH(v ...builder.Option) Func
- func POST(v ...builder.Option) Func
- func PUT(v ...builder.Option) Func
- func TRACE(v ...builder.Option) Func
- type Option
- func BaseUrl(v string) Option
- func Body(v *io.Reader) Option
- func BodyBytes(v []byte) Option
- func BodyString(v string) Option
- func Context(v context.Context) Option
- func Cookie(v *http.Cookie) Option
- func Header(k, v string) Option
- func Host(v string) Option
- func Path(v string, args ...interface{}) Option
- func Port(v int) Option
- func PortString(v string) Option
- func Query(k, v string) Option
- func Scheme(v string) Option
- type Options
- func (o Options) Append(opts ...Option) Options
- func (o Options) CONNECT(v ...Option) Func
- func (o Options) DELETE(v ...Option) Func
- func (o Options) GET(v ...Option) Func
- func (o Options) HEAD(v ...Option) Func
- func (o Options) OPTIONS(v ...Option) Func
- func (o Options) PATCH(v ...Option) Func
- func (o Options) POST(v ...Option) Func
- func (o Options) PUT(v ...Option) Func
- func (o Options) TRACE(v ...Option) Func
- func (o Options) With(opts ...Option) Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
Func is a type alias for a function that takes a *testing.T and returns an *http.Request.
type Option ¶
Option is a function that modifies the builder.
func BodyString ¶
BodyString sets the body of the request from a string.
func PortString ¶
PortString sets the port for the request as a string.
Click to show internal directories.
Click to hide internal directories.