I have an http2 handler and it received http2 requests. Now I need to access:authority pseudoheader field in the request. How to go about it? I am aware of few options as below:
Is there a way, to just extract the pseudofield alone?
the Host in http.Request does it in the sense that, it reads the:authority into r.Host field. But other fields are difficult to get a hold of.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.