You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.
We need to design a standard struct/interface for client, request, response to use across all the operations, schema changes, updating documents etc. It is possible we do the converting directly and user don't need to call json.Unmarshal directly
TODO
checkResponse does not work for certain APIs because
they don't use status code to indicate error
404 returns html page
schema management has its own error response format
The main problem of using multiple packages is there is import cycle for client, one way to solve it to have a service wrapper different packages, so the user is calling the service instead of the client package directly
This verifies that the client's bufio reading reads ahead and notes the EOF, so even if the JSON
decoder doesn't read the EOF itself, as long as somebody sees it, a close won't forcible tear down the connection. This was true at least of https://golang.org/cl/21291
so I believe it is not needed in latest version, but I haven't run any experiment.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We need to design a standard struct/interface for client, request, response to use across all the operations, schema changes, updating documents etc. It is possible we do the converting directly and user don't need to call
json.Unmarshal
directlyTODO
checkResponse
does not work for certain APIs becauseRef
net/http
json.Decoder
extra call is needed to drain the body and reuse connection Drain Response.Body to enable TCP/TLS connection reuse (4x speedup) google/go-github#317 (does it still needed for newer golang version?)The text was updated successfully, but these errors were encountered: