Skip to content

Latest commit

 

History

History
 
 

jetty-embedded

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Jetty embedded

Sample project for Ktor running as an embedded application with Jetty engine.

Running

Execute this command in the repository's root directory to run this sample:

./gradlew :jetty-embedded:run

And navigate to http://localhost:8080/ to see the sample home page.

Embedded application

Embedded Ktor application is started with the following line of code using Jetty engine:

embeddedServer(Jetty, commandLineEnvironment(args)).start()

See Main.kt