ktor-server-cio
Module Contents
alltypes
Module Contents
object
CIO
:
ApplicationEngineFactory
<
CIOApplicationEngine
,
Configuration
>
Module Contents
fun
create
(
environment
:
ApplicationEngineEnvironment
,
configure
:
Configuration
.
(
)
->
Unit
)
:
CIOApplicationEngine
class
CIOApplicationEngine
:
BaseApplicationEngine
Module Contents
CIOApplicationEngine
(
environment
:
ApplicationEngineEnvironment
,
configure
:
Configuration
.
(
)
->
Unit
)
class
Configuration
:
Configuration
Module Contents
Configuration
(
)
var
connectionIdleTimeoutSeconds
:
Int
fun
start
(
wait
:
Boolean
)
:
ApplicationEngine
fun
stop
(
gracePeriodMillis
:
Long
,
timeoutMillis
:
Long
)
:
Unit
object
DevelopmentEngine
Module Contents
@JvmStatic
fun
main
(
args
:
Array
<
String
>
)
:
Unit
object
EngineMain
Module Contents
@JvmStatic
fun
main
(
args
:
Array
<
String
>
)
:
Unit
class
HttpServer
Module Contents
HttpServer
(
rootServerJob
:
Job
,
acceptJob
:
Job
,
serverSocket
:
Deferred
<
ServerSocket
>
)
val
acceptJob
:
Job
val
rootServerJob
:
Job
val
serverSocket
:
Deferred
<
ServerSocket
>
data
class
HttpServerSettings
Module Contents
HttpServerSettings
(
host
:
String
=
"0.0.0.0"
,
port
:
Int
=
8080
,
connectionIdleTimeoutSeconds
:
Long
=
45
)
val
connectionIdleTimeoutSeconds
:
Long
val
host
:
String
val
port
:
Int
kotlinx.coroutines.CoroutineScope
Module Contents
fun
CoroutineScope
.
httpServer
(
settings
:
HttpServerSettings
,
handler
:
suspend
CoroutineScope
.
(
request
:
Request
,
input
:
ByteReadChannel
,
output
:
ByteWriteChannel
,
upgraded
:
CompletableDeferred
<
Boolean
>
?
)
->
Unit
)
:
HttpServer
kotlinx.coroutines.CoroutineScope
Module Contents
fun
CoroutineScope
.
httpServer
(
settings
:
HttpServerSettings
,
handler
:
<ERROR CLASS>
)
:
HttpServer
package
io.ktor.server.cio
Module Contents
object
CIO
:
ApplicationEngineFactory
<
CIOApplicationEngine
,
Configuration
>
Module Contents
fun
create
(
environment
:
ApplicationEngineEnvironment
,
configure
:
Configuration
.
(
)
->
Unit
)
:
CIOApplicationEngine
class
CIOApplicationEngine
:
BaseApplicationEngine
Module Contents
CIOApplicationEngine
(
environment
:
ApplicationEngineEnvironment
,
configure
:
Configuration
.
(
)
->
Unit
)
class
Configuration
:
Configuration
Module Contents
Configuration
(
)
var
connectionIdleTimeoutSeconds
:
Int
fun
start
(
wait
:
Boolean
)
:
ApplicationEngine
fun
stop
(
gracePeriodMillis
:
Long
,
timeoutMillis
:
Long
)
:
Unit
object
DevelopmentEngine
Module Contents
@JvmStatic
fun
main
(
args
:
Array
<
String
>
)
:
Unit
object
EngineMain
Module Contents
@JvmStatic
fun
main
(
args
:
Array
<
String
>
)
:
Unit
class
HttpServer
Module Contents
HttpServer
(
rootServerJob
:
Job
,
acceptJob
:
Job
,
serverSocket
:
Deferred
<
ServerSocket
>
)
val
acceptJob
:
Job
val
rootServerJob
:
Job
val
serverSocket
:
Deferred
<
ServerSocket
>
data
class
HttpServerSettings
Module Contents
HttpServerSettings
(
host
:
String
=
"0.0.0.0"
,
port
:
Int
=
8080
,
connectionIdleTimeoutSeconds
:
Long
=
45
)
val
connectionIdleTimeoutSeconds
:
Long
val
host
:
String
val
port
:
Int
fun
httpServer
(
settings
:
HttpServerSettings
,
parentJob
:
Job
?
=
null
,
handler
:
<ERROR CLASS>
)
:
HttpServer
fun
httpServer
(
settings
:
HttpServerSettings
,
parentJob
:
Job
?
=
null
,
callDispatcher
:
<ERROR CLASS>
?
,
handler
:
<ERROR CLASS>
)
:
HttpServer
kotlinx.coroutines.CoroutineScope
Module Contents
fun
CoroutineScope
.
httpServer
(
settings
:
HttpServerSettings
,
handler
:
suspend
CoroutineScope
.
(
request
:
Request
,
input
:
ByteReadChannel
,
output
:
ByteWriteChannel
,
upgraded
:
CompletableDeferred
<
Boolean
>
?
)
->
Unit
)
:
HttpServer
package
io.ktor.server.cio.backend
Module Contents
kotlinx.coroutines.CoroutineScope
Module Contents
fun
CoroutineScope
.
httpServer
(
settings
:
HttpServerSettings
,
handler
:
<ERROR CLASS>
)
:
HttpServer