Go Package net/http: Difference between revisions
Jump to navigation
Jump to search
(→TODO) |
(→TODO) |
||
Line 7: | Line 7: | ||
=TODO= | =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 | * https://github.com/bradfitz/exp-httpclient/blob/master/problems.md | ||
* Explore this package: https://github.com/earthboundkid/requests | * Explore this package: https://github.com/earthboundkid/requests | ||
</font> | |||
=Overview= | =Overview= |
Latest revision as of 21:56, 30 July 2024
External
Internal
TODO
- 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
Overview
Reading the Request Body
TO PROCESS:
- https://www.alexedwards.net/blog/how-to-properly-parse-a-json-request-body
- Working example in ovidiu-feodorov/go-micros/blob/develop/metadata/internal/handler/http/http.go
- JSON_in_Go#With_a_Reader
Decoding to JSON only works if the HTTP requests has a "Content-Type: application/json" header, otherwise the decoding fails with an EOF error.