Added a MethodSearch = "SEARCH" to http/net/method.go, to let developers conveniently use public API, in this particular case constant for http requests in web-apps.
bradfitz
changed the title
In accordance with RFC7230/7231 there should be support for SEARCH http method
proposal: net/http: add MethodSearch constant for HTTP SEARCH method
Jan 23, 2019
@bradfitz from my experience the line always between proved theories with practical needs and other crazy things. So, here we have method SEARCH that, practically, can be used only for requests that query search results e.g.: full-text search and isolate those from overloaded GET, logically separating them.
@rsc Go-team opened code for open-source community, now it seems like: "let`s leave code alone" - do not touch API, until we redo and then put those methods our-selfs into the code. I saw already, that guys from formal go-team just rework code a little and put it as their own, although the pull requests left non-merged and then closed, I would never do things like that to contributors in my projects, because it is straight bullying and misusage of power.
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?MacOS/amd64
go env
OutputWhat did you do?
Added a MethodSearch = "SEARCH" to http/net/method.go, to let developers conveniently use public API, in this particular case constant for http requests in web-apps.
References to RFCs and examples:
https://tools.ietf.org/id/draft-snell-search-method-00.html#search
https://tools.ietf.org/id/draft-snell-search-method-00.html#rfc.section.4.2
The text was updated successfully, but these errors were encountered: