- Notifications
You must be signed in to change notification settings - Fork926
chore: userw.WriteHeader
to write responses without bodies#13870
New issue
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
We also do this tracing span end too: coder/coderd/httpapi/httpapi.go Lines 166 to 167 in4160118
We'd be losing that. |
yes, but all that span measures is time to encode the body and write it to the wire. I guess we could add a new function that just writes the head and tracks that with a span? |
Emyrk commentedJul 11, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I misread what the span did, this is not a big deal 👍 |
de2585b
intomainUh oh!
There was an error while loading.Please reload this page.
| Status | Meaning| Description | Schema | | ||
| ------ | ------------------------------------------------------- |----------- | ---------------------------------------- | | ||
|200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) |OK| [codersdk.User](schemas.md#codersdkuser) | | ||
| Status | Meaning| Description | Schema | | ||
| ------ | --------------------------------------------------------------- | ----------- |------ | | ||
|204 | [No Content](https://tools.ietf.org/html/rfc7231#section-6.3.5) |No Content | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This was a breaking change that we missed.
the body gets ignored anyway, so why bother allocating/serializing anything?