Go Package net/http: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
* [[Go_Language_Modularization#net_http|Standard Library]]
* [[Go_Language_Modularization#net_http|Standard Library]]
* [[HTTP_in_Go#Overview|HTTP in Go]]
* [[HTTP_in_Go#Overview|HTTP in Go]]
=TODO=
<font color=darkkhaki>
* Next time I get here, debug and diagram net/http Client/Transport/RoundTripper. There's an initial odg diagram on the work machine under ★ .../bkapi.odg. 
* https://github.com/bradfitz/exp-httpclient/blob/master/problems.md
* Explore this package: https://github.com/earthboundkid/requests
</font>


=Overview=
=Overview=
Line 21: Line 28:


=Registering Handlers Generated by oapi-codegen from an OpenAPI Specification=
=Registering Handlers Generated by oapi-codegen from an OpenAPI Specification=
{{Internal|Oapi-codegen#Code_Generation_for_OpenAPI_Specification_Path/Operation_Combinations|<tt>oapi-codegen</tt> Server Code Generation}}
{{Internal|Oapi-codegen#chi-server|<tt>oapi-codegen</tt> Server Code Generation}}

Latest revision as of 21:56, 30 July 2024

External

Internal

TODO

Overview

Reading the Request Body

TO PROCESS:

Decoding to JSON only works if the HTTP requests has a "Content-Type: application/json" header, otherwise the decoding fails with an EOF error.

Registering Handlers Generated by oapi-codegen from an OpenAPI Specification

oapi-codegen Server Code Generation