Remove mandatory non-default method

This commit is contained in:
some 2024-10-08 22:58:21 -04:00
parent 23d17061e6
commit f6982b6de5
Signed by: some
GPG Key ID: 65D0589220B9BFC8

View File

@ -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)