/otter

micro web framework for servlet api 4.0.1

Primary LanguageJavaMIT LicenseMIT

otter

Otter is a micro web framework that sits on top of the servlet api 4.0.1

Contribute!

Contribute!

Hello World Application

If you want to get started with all the details head over to the hello world example application.

Quick Start Application

If you want to get started quickly head over to the quick start example application. Only 5 files to get started.

Dependency coordinates

Latest pinned version is 1.5.7

Current development version is 1.5.7

Maven

<dependencies>
    <dependency>
        <groupId>net.tokensmith</groupId>
        <artifactId>otter</artifactId>
        <version>1.5.7</version>
    </dependency>
</dependencies>

Gradle

compile group: 'net.tokensmith', name: 'otter', version: '1.5.7'

Documentation

Detailed documentation is available.

Why?

Otter was created to provide these features:

  • Preference of Generics over Reflection
  • Abstract the I/O framework from the web framework
  • Regex routing
  • Application encrypted sessions
  • Async I/O
  • HTTP 2

Otter began embedded within a web application in late 2014. Back then there were not many options for those features. It was extracted and open sourced in 2017.