traefik/vendor/github.com/ArthurHlt/go-eureka-client/eureka/response.go

22 lines
444 B
Go
Raw Normal View History

2017-02-07 21:33:23 +00:00
package eureka
import "net/http"
type RawResponse struct {
StatusCode int
Body []byte
Header http.Header
}
var (
validHttpStatusCode = map[int]bool{
http.StatusNoContent: true,
http.StatusCreated: true,
http.StatusOK: true,
http.StatusBadRequest: true,
http.StatusNotFound: true,
http.StatusPreconditionFailed: true,
http.StatusForbidden: true,
}
)