toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.io.net.http
/
HttpServer
/
WsRequest
Ws
Request
abstract
class
WsRequest
(
val
uri
:
String
,
val
headers
:
Http.Headers
,
val
scope
:
CoroutineScope
)
:
HttpServer.BaseRequest
Members
Constructors
Ws
Request
Link copied to clipboard
constructor
(
uri
:
String
,
headers
:
Http.Headers
,
scope
:
CoroutineScope
)
Properties
absolute
URI
Link copied to clipboard
val
absoluteURI
:
String
address
Link copied to clipboard
open
val
address
:
AsyncAddress
extra
Link copied to clipboard
open
override
var
extra
:
ExtraType
get
Params
Link copied to clipboard
val
getParams
:
Map
<
String
,
List
<
String
>
>
headers
Link copied to clipboard
val
headers
:
Http.Headers
path
Link copied to clipboard
val
path
:
String
query
String
Link copied to clipboard
val
queryString
:
String
scope
Link copied to clipboard
val
scope
:
CoroutineScope
uri
Link copied to clipboard
val
uri
:
String
Functions
accept
Link copied to clipboard
open
fun
accept
(
headers
:
Http.Headers
)
any
Message
Stream
Link copied to clipboard
fun
anyMessageStream
(
)
:
ReceiveChannel
<
Any
>
binary
Message
Stream
Link copied to clipboard
fun
binaryMessageStream
(
)
:
ReceiveChannel
<
ByteArray
>
close
Link copied to clipboard
abstract
fun
close
(
)
on
Binary
Message
Link copied to clipboard
abstract
fun
onBinaryMessage
(
handler
:
suspend
(
ByteArray
)
->
Unit
)
on
Close
Link copied to clipboard
abstract
fun
onClose
(
handler
:
suspend
(
WsCloseInfo
)
->
Unit
)
on
String
Message
Link copied to clipboard
abstract
fun
onStringMessage
(
handler
:
suspend
(
String
)
->
Unit
)
reject
Link copied to clipboard
abstract
fun
reject
(
)
send
Link copied to clipboard
abstract
fun
send
(
msg
:
ByteArray
)
abstract
fun
send
(
msg
:
String
)
send
Safe
Link copied to clipboard
fun
sendSafe
(
msg
:
ByteArray
)
fun
sendSafe
(
msg
:
String
)
string
Message
Stream
Link copied to clipboard
fun
stringMessageStream
(
)
:
ReceiveChannel
<
String
>