Fill out http API

Could http and http.Client get additional built-in functions for more HTTP methods, such as Put, Delete, Trace, Connect, Head, and Options? It just seems incomplete for the API’s to provide built-in functions for Get and Post, but not the other HTTP methods.

Head is supported natively and you can use any request method you want, just build the Request struct yourself and use Client.Do()

1 Like

Yes, I am aware that the method can be supplied manually. I’m asking for the API to become more complete, by offering the rest of the HTTP methods as built-in functions.

The correct place to ask for an addition to the go standard library is https://golang.org/issue/new

Be aware that the development tree is currently frozen ahead of the 1.9 release in August.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.