Skip to content

Conversation

pallas
Copy link
Contributor

@pallas pallas commented Dec 12, 2020

RFC7540 describes the false PRI method, part of the HTTP/2 Connection
Preface. It mimics a regular HTTP/1 request, but in reality is an upgrade
request with the bytes

PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n

When we see this method, we should hand-off as we do any other upgrade.

@pallas
Copy link
Contributor Author

pallas commented Dec 12, 2020

Also: I did a performance test, no noticeable change

RFC7540 describes the false PRI method, part of the HTTP/2 Connection
Preface.  It mimics a regular HTTP/1 request, but in reality is an upgrade
request with the bytes

	PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n

When we see this method, we should hand-off as we do any other upgrade.
@pallas
Copy link
Contributor Author

pallas commented Dec 12, 2020

I should have run the tests and the linter. Fixed.

@pallas pallas mentioned this pull request Dec 16, 2020
@pallas
Copy link
Contributor Author

pallas commented Jan 6, 2021

@indutny any thoughts here?

Copy link
Member

@indutny indutny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Sorry for a delay!

indutny pushed a commit that referenced this pull request Jan 12, 2021
RFC7540 describes the false PRI method, part of the HTTP/2 Connection
Preface.  It mimics a regular HTTP/1 request, but in reality is an upgrade
request with the bytes

	PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n

When we see this method, we should hand-off as we do any other upgrade.

PR-URL: #80
Reviewed-By: Fedor Indutny <[email protected]>
@indutny
Copy link
Member

indutny commented Jan 12, 2021

Landed in 73d7bd9

@indutny indutny closed this Jan 12, 2021
alex-dev-2012 added a commit to alex-dev-2012/llhttp that referenced this pull request Jul 29, 2025
RFC7540 describes the false PRI method, part of the HTTP/2 Connection
Preface.  It mimics a regular HTTP/1 request, but in reality is an upgrade
request with the bytes

	PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n

When we see this method, we should hand-off as we do any other upgrade.

PR-URL: nodejs/llhttp#80
Reviewed-By: Fedor Indutny <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants