abd49a6c48
When talking to an HTTP2 server, there are situations where it needs to
"rewind" the Request.Body. To allow this, we have to set up the Request.GetBody
function to return a brand new instance of the body.
If not set, we can end up with the following error:
http2: Transport: cannot retry err [http2: Transport received Server's graceful shutdown GOAWAY] after Request.Body was written; define Request.GetBody to avoid this error
See this commit for more information:
|
||
---|---|---|
.. | ||
testdata | ||
client_example_test.go | ||
client_test.go | ||
client.go | ||
constants_unix_nocgo.go | ||
constants_unix.go | ||
doc.go | ||
endpoints.go | ||
errors.go | ||
handler.go | ||
http_test.go | ||
http.go | ||
inproc.go | ||
ipc_js.go | ||
ipc_unix.go | ||
ipc_windows.go | ||
ipc.go | ||
json.go | ||
metrics.go | ||
server_test.go | ||
server.go | ||
service.go | ||
stdio.go | ||
subscription_test.go | ||
subscription.go | ||
testservice_test.go | ||
types_test.go | ||
types.go | ||
websocket_test.go | ||
websocket.go |