Thorium Server


HTTP methods supported can be found here.

To make a parameter as part of the query string, simply leave out the parameter in the path pattern. 

For example, our previous "sayHello" method can be made to accept "name" parameter in its query string by changing it like so:

@Get("/sayHello") // previously /sayHello/:name
def sayHello(@Param name: String)(using request: Request) =
  s"Hello $name"
Read more about how Armeria handles query strings here.

Last modified on 28/11/2022, 9:10 am