mirror of
https://github.com/vlang/v.git
synced 2025-09-15 23:42:28 +03:00
x.websocket: move to net.websocket module (#10648)
This commit is contained in:
parent
c44a47acb1
commit
ec973f5c6e
41 changed files with 1656 additions and 67 deletions
16
vlib/net/websocket/uri.v
Normal file
16
vlib/net/websocket/uri.v
Normal file
|
@ -0,0 +1,16 @@
|
|||
module websocket
|
||||
|
||||
// Uri represents an Uri for websocket connections
|
||||
struct Uri {
|
||||
mut:
|
||||
url string // url to the websocket endpoint
|
||||
hostname string // hostname of the websocket endpoint
|
||||
port string // port of the websocket endpoint
|
||||
resource string // resource of the websocket endpoint
|
||||
querystring string // query string of the websocket endpoint
|
||||
}
|
||||
|
||||
// str returns the string representation of the Uri
|
||||
pub fn (u Uri) str() string {
|
||||
return u.url
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue