We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use http.Response to create packets
http.Response
resp := new(http.Response) resp.Status = "200 OK" resp.StatusCode = http.StatusOK resp.ProtoMajor = 1 resp.ProtoMinor = 0 resp.Proto = "EVENT/1.0"
I set the Proto field, but at the end the written bytes still contain HTTP/1.0 200 OK because that's hardcoded in response.go
HTTP/1.0 200 OK
The text was updated successfully, but these errors were encountered:
Sorry, it's true that the net/http package is an HTTP package and assumes that the thing it's speaking is HTTP.
net/http
If you want to speak a different protocol, you'll need to use or write a different package.
Sorry, something went wrong.
No branches or pull requests
I use
http.Response
to create packetsI set the Proto field, but at the end the written bytes still contain
HTTP/1.0 200 OK
because that's hardcoded in response.goThe text was updated successfully, but these errors were encountered: