x.websocket: move to net.websocket module (#10648)

This commit is contained in:
Tomas Hellström 2021-07-03 01:56:00 +02:00 committed by GitHub
parent c44a47acb1
commit ec973f5c6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 1656 additions and 67 deletions

16
vlib/net/websocket/uri.v Normal file
View 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
}