Documentation ¶
Index ¶
- Variables
- func MakeRequest(method, url string, entity interface{}) (*http.Response, error)
- func MakeRequestWithMiddleware(method, url string, entity interface{}, mid func(*http.Request)) (*http.Response, error)
- func ProcessResponseBytes(r *http.Response, expectedStatus int) ([]byte, error)
- func ProcessResponseEntity(r *http.Response, entity interface{}, expectedStatus int) error
- type UUID
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrStatusConflict error = errors.New(fmt.Sprintf("%d: Conflict", http.StatusConflict)) ErrStatusBadRequest error = errors.New(fmt.Sprintf("%d: Bad Request", http.StatusBadRequest)) ErrStatusInternalServerError error = errors.New(fmt.Sprintf("%d: Internal Server Error", http.StatusInternalServerError)) ErrStatusNotFound error = errors.New(fmt.Sprintf("%d: Not Found", http.StatusNotFound)) )
View Source
var HttpClient = http.DefaultClient
Functions ¶
func ProcessResponseBytes ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.