root
Toggle table of contents
goblin-agent
Target filter
goblin-agent
Switch theme
Search in API
Skip to content
root
root
/
fi.utu.tech.powergoblin.agent
/
WebServer
/
Exchange
Exchange
goblin-agent
inner
class
Exchange
(
val
http
:
<Error class: unknown class>
,
val
path
:
String
=
http.requestURI.path
,
val
inputStream
:
<Error class: unknown class>
?
=
null
)
Members
Constructors
Exchange
Link copied to clipboard
goblin-agent
constructor
(
http
:
<Error class: unknown class>
,
path
:
String
=
http.requestURI.path
,
inputStream
:
<Error class: unknown class>
?
=
null
)
Properties
http
Link copied to clipboard
goblin-agent
val
http
:
<Error class: unknown class>
input
Stream
Link copied to clipboard
goblin-agent
val
inputStream
:
<Error class: unknown class>
?
=
null
path
Link copied to clipboard
goblin-agent
val
path
:
String
Functions
handle
Link copied to clipboard
goblin-agent
fun
handle
(
handler
:
(
WebServer.Exchange
)
->
Unit
?
)
invalid
Request
Link copied to clipboard
goblin-agent
fun
invalidRequest
(
msg
:
String
?
=
null
,
status
:
Int
=
200
)
reply
Link copied to clipboard
goblin-agent
fun
reply
(
input
:
<Error class: unknown class>
,
status
:
Int
=
200
,
size
:
Long
?
,
type
:
String
=
"application/x-zip"
)
fun
reply
(
response
:
ByteArray
,
status
:
Int
=
200
,
size
:
Int
=
response.size
,
type
:
String
=
"application/javascript"
)
reply
Json
Link copied to clipboard
goblin-agent
inline
fun
<
T
>
replyJson
(
obj
:
T
,
status
:
Int
=
200
)