Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseHeaders ¶
ParseHeaders parses the rsponse headers.
func ParseJsonBody ¶
ParseJsonBody parses the rsponse body, which should be in json content type.
Types ¶
type Service ¶
type Service interface { // DoRequest sends a HTTP request to the service. DoRequest(r *http.Request) (*http.Response, error) }
Service represents a remote HTTP service.
func NewService ¶
NewService returns a remote service with the given name. opts are used to customize the *http.Client.
Click to show internal directories.
Click to hide internal directories.