All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kotlin-server.libraries.ktor._api_body.mustache Maven / Gradle / Ivy

{{#hasAuthMethods}}
{{>libraries/ktor/_principal}}
if (principal == null) {
    call.respond(HttpStatusCode.Unauthorized)
} else {
    {{#examples}}
    {{#-first}}
    {{#lambda.indented}}{{>_response}}{{/lambda.indented}}
    {{/-first}}
    {{/examples}}
    {{^examples}}
    call.respond(HttpStatusCode.NotImplemented)
    {{/examples}}
}
{{/hasAuthMethods}}
{{^hasAuthMethods}}
{{#examples}}
{{#-first}}
{{>libraries/ktor/_response}}
{{/-first}}
{{/examples}}
{{^examples}}
call.respond(HttpStatusCode.NotImplemented)
{{/examples}}
{{/hasAuthMethods}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy