Skip to content

x/net/websocket: Add the original http.Request to websocket.Conn #1726

@gopherbot

Description

@gopherbot

by engage@togethr.at:

It'd be really useful if one could access the original http.Request object within a
websocket handler. Example uses include accessing the original request for headers, etc.

I've added a minimal patch that exposes the http.Request object as part of
websocket.Conn.

Thanks!

Attachments:

  1. websocket.diff (2313 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions