-
Notifications
You must be signed in to change notification settings - Fork 845
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
send early hints #1767
send early hints #1767
Conversation
lib/handler/mruby.c
Outdated
if (found == NULL) | ||
found = end; | ||
h2o_add_header_by_str(&generator->req->pool, &generator->req->res.headers, RSTRING_PTR(name), RSTRING_LEN(name), 1, NULL, | ||
pos, found - pos); |
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.
Am I correct in assuming that we already have code that handles \n
for final responses? If yes, is the logic same as that for the final response? Is there a reason for not sharing the code?
Also, I believe that removing \n
might be the correct solution here, see RFC 7230 section 3.2.4.
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.
LGTM. |
@i110 Do you have any open issues regarding this PR? If not, please merge, then compose a new PR that updates the documentation. Thank you in advance. |
This PR does 2 things:
when: early
send 103 response before dispatching to the next handlerenv['rack.early_hints']