Skip to content

Latest commit

 

History

History
 
 

test-sample-poja

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Plain Old Java Application (POJA) using Micronaut HTTP Framework

micronaut-http-poja module provides an implementation of the Micronaut HTTP Framework for Plain Old Java Applications (POJA). Such applications can be integrated with Server frameworks such as Unix Super Server (aka Inetd).

Sample Application

This is sample showing an example of using the HTTP POJA module (micronaut-http-poja) for serverless applications.

Tests

The tests have micronaut-http-poja-test dependency that simplifies the implementation

Running

To run this sample use:

gradle :micronaut-test-sample-poja:run --console=plain

Then provide the request in Standard input of the console:

GET / HTTP/1.1
Host: h

Get the response:

HTTP/1.1 200 Ok
Date: Thu, 27 Jun 2024 20:31:09 GMT
Content-Type: text/plain
Content-Length: 32

Hello, Micronaut Without Netty!

Alternatively redirect the input from a file:

gradle :micronaut-test-sample-poja:run --console=plain <test-sample-poja/test-request.txt