trafficserver icon indicating copy to clipboard operation
trafficserver copied to clipboard

Add HTTP header version converter

Open maskit opened this issue 3 years ago • 3 comments

This removes dependency for http2 form http3 by moving their common code into proxy/hdrs/.

The logic is basically unchanged. Only trick I added is a switch to create (reserve) pseudo header fields on HTTPHdr initialization. If you pass HTTP_2_0 or HTTP_3_0 to the init function, MIMEFields for pseudo header fields will be added automatically to ensure those fields will be placed at the beginning of the header field list.

maskit avatar Aug 01 '22 00:08 maskit

@bneradt Thank you for your feedback. I updated the code and added oxygen comments.

maskit avatar Aug 02 '22 23:08 maskit

@bneradt I rebased the branch on top of the latest master to resolve conflicts. PTAL.

maskit avatar Aug 09 '22 06:08 maskit

Looks good.

bneradt avatar Aug 10 '22 18:08 bneradt