Body
Part
Similar to Http.Error but have more informarion
Arbitrary method
GET
POST
PUT
PATCH
DELETE
Add text with mime type.
Add JSON for POST etc.
Add file to upload
Add bytes with mime type.
Add multipart body.
String part (key and value)
Add header
Add timeout
Allow cookies from other domains.
Make a task that returns a string or Http.Error
Make a task that returns a string or Req.Error
Make a task that returns a string or Req.Error with custom error.
Decoding errors will be a BadBody error.
Note: This function assumes the error is always a JSON.
If you are not sure, use string instead and decode the body later.
Make a task that returns an arbitrary data or Http.Error
Make a task that returns an arbitrary data or Req.Error
Make a task that returns an arbitrary data or Req.Error with custom error.
Decoding errors will be a BadBody error.
Note: This function assumes the error is always a JSON.
If you are not sure, use json instead and decode the body later.
Make a task that returns an arbitrary data or Http.Error.
Make a task that returns an arbitrary data or Req.Error.
Make a task that returns an arbitrary data or Req.Error with custom error.
Ignore the result.
Create a task with existing Http.Resolver.
Send a request for tracking, expecting a string or Http.Error.
Send a request for tracking, expecting a string or Req.Error.
Send a request for tracking, expecting a string or Req.Error with custom error.
Decoding errors will be a BadBody error.
Note: This function assumes the error is always a JSON.
If you are not sure, use trackString instead and decode the body later.
Send a request for tracking, expecting an arbitrary data or Http.Error.
Send a request for tracking, expecting an arbitrary data or Req.Error.
Send a request for tracking, expecting an arbitrary data or Req.Error with custom error.
Decoding errors will be a BadBody error.
Note: This function assumes the error is always a JSON.
If you are not sure, use trackJson instead and decode the body later.
Send a request for tracking, expecting an arbitrary data or Http.Error.
Send a request for tracking, expecting an arbitrary data or Req.Error.
Send a request for tracking, expecting an arbitrary data or Req.Error with custom error.
Track something but ignore the result.
Make a Cmd with tracker using existing Http.Expect.
Request