Remove mandatory non-default method
This commit is contained in:
parent
23d17061e6
commit
f6982b6de5
@ -122,10 +122,6 @@ func NewDefaultRequestBuilder(rb RequestBuilder, am *[]string, h *Header, hf hea
|
||||
}
|
||||
}
|
||||
|
||||
func (rb DefaultRequestBuilder) RequestBuilder() RequestBuilder {
|
||||
return rb.requestBuilder
|
||||
}
|
||||
|
||||
func (rb *DefaultRequestBuilder) Allowed(method string) (errRes ErrorResponse) {
|
||||
var ok bool
|
||||
for _, m := range *rb.allowedMethods {
|
||||
@ -205,10 +201,6 @@ func NewDefaultResponse(r Response, h *Header, hf header, b *Body, bf body) Defa
|
||||
}
|
||||
}
|
||||
|
||||
func (r DefaultResponse) Response() Response {
|
||||
return r.response
|
||||
}
|
||||
|
||||
func (r *DefaultResponse) Header() (header Header) {
|
||||
if r.header.Header == nil {
|
||||
r.header.Header.Parse(r.header.fields)
|
||||
|
Loading…
Reference in New Issue
Block a user