Documentation
¶
Index ¶
Constants ¶
View Source
const ( ContentTypeJson = ContentType("application/json") ConentTypeXML = ContentType("application/xml") ContentTypeHTML = ContentType("text/html") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { Balancer(bln balancer.Balancer) Builder Logger(logger logging.Logger) Builder DecodeType(contentType ContentType) Builder Service(name string) Builder Address(address string) Builder GET(path string) Builder POST(path string) Builder PUT(path string) Builder DELETE(path string) Builder PATCH(path string) Builder OPTIONS(path string) Builder QueryParam(key, value string) Builder ToEncode(object interface{}) Builder ToDecode(object interface{}) Builder ContentType(contentType ContentType) Builder Header(key, value string) Builder Cookie(key string, value []byte) Builder Encoder(encoder serialization.Encoder) Builder Decoder(decoder serialization.Decoder) Builder Before(fn Before) Builder Go() (response Response, err error) }
type ContentType ¶
type ContentType string
func (ContentType) String ¶
func (ct ContentType) String() string
Click to show internal directories.
Click to hide internal directories.