v2 / vlib / net / websocket / uri.v
16 lines · 14 sloc · 473 bytes · ec973f5c6e32a8871a71a1fb9924bb8b3670967c
Raw
1module websocket
2
3// Uri represents an Uri for websocket connections
4struct Uri {
5mut:
6 url string // url to the websocket endpoint
7 hostname string // hostname of the websocket endpoint
8 port string // port of the websocket endpoint
9 resource string // resource of the websocket endpoint
10 querystring string // query string of the websocket endpoint
11}
12
13// str returns the string representation of the Uri
14pub fn (u Uri) str() string {
15 return u.url
16}
17