Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
A Client that exchanges data with a set endpoint through HTTP POST.
func ClientMake ¶
ClientMake returns a unsable Client. cli may be nil, in which case the default http client is used.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is a bridge between standard http request handling and the msg framework.
The zero value is directly usable.
func (*Handler) ReaderChain ¶
func (x *Handler) ReaderChain(ert msg.ExchangeReaderTaker) error
In order to return a http BadRequest, [ert] should return an error when reading, without using the associated response Writer. In any other case, a http OK will be returned, as well as any data written by the time [ert.ReaderTake] returns.
Click to show internal directories.
Click to hide internal directories.