# Overview

HOKA is a tiny extensible web server for embedded devices.

# Usage

HOKA 8 is released. check the [CHANGELOG](CHANGELOG.md)

`<dependency org="ej.library.iot" name="hoka" rev="8.X.X"/>`
`implementation("ej.library.iot:hoka:8.X.X")`

## Getting Started

Add dependency to your MicroEJ application

<details>
<summary><b>Ivy</b></summary>

 ```bash
   <dependency org="ej.library.iot" name="hoka" rev="8.X.X"/>
   ```

</details>

<details>
<summary><b>Gradle</b></summary>

 ```bash
    implementation("ej.library.iot:hoka:8.X.X")
   ```

</details> 

```java
        public class MyServer {

    public static void main(String[] args) throws IOException {

        HttpServer http = HttpServer.builder()
                .port(8080)
                .simultaneousConnections(4)
                .workerCount(4)
                .build();

        http.get("/hello", new RequestHandler() {

            @Override
            public void process(HTTPRequest request, HTTPResponse response) {
                response.setData("Hello world!");
            }

        });

        http.start();
    }
}
```

Run the application and check the result at `http://localhost:8080/hello`

# Documentation

The full documentation can be found here [documentation](documentation.rst).

# Footprint

The total ROM footprint of **Hoka 8.4.0** is 26KB + (16.5KB - 5.8KB) = **36.7KB**.

# Requirements

N/A

# Dependencies

N/A

# Source

N/A

# Restrictions

N/A

---  
_Markdown_  
_Copyright 2017-2024 MicroEJ Corp. All rights reserved._
_Use of this source code is governed by a BSD-style license that can be found with this software._
