Home | History | Annotate | Download | only in markdown

Lines Matching refs:Nanohttpd

0 ## NanoHTTPD ? a tiny web server in Java
3 *NanoHTTPD* is a light-weight HTTP server designed for embedding in other applications, released under a Modified BSD licence.
7 * Build status: [![Build Status](https://api.travis-ci.org/NanoHttpd/nanohttpd.png)](https://travis-ci.org/NanoHttpd/nanohttpd)
8 * Coverage Status: [![Coverage Status](https://coveralls.io/repos/NanoHttpd/nanohttpd/badge.svg)](https://coveralls.io/r/NanoHttpd/nanohttpd)
9 * Current central released version: [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.nanohttpd/nanohttpd/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.nanohttpd/nanohttpd)
30 <groupId>org.nanohttpd</groupId> <!-- <groupId>com.nanohttpd</groupId> for 2.1.0 and earlier -->
31 <artifactId>nanohttpd</artifactId>
41 import fi.iki.elonen.NanoHTTPD;
43 public class App extends NanoHTTPD {
84 This text has to be extrended with an example, so for now take a look at the unit tests for the usage. <https://github.com/NanoHttpd/nanohttpd/blob/master/nanolets/src/test/java/fi/iki/elonen/router/AppNanolets.java>
88 We are currently in the process of stabilizing NanoHttpd from the many pull requests and feature requests that were integrated over the last few months. The next release will come soon, and there will not be any more "intended" major changes before the next release. If you want to use the bleeding edge version, you can clone it from Github, or get it from sonatype.org (see "Maven dependencies / Living on the edge" below).
92 NanoHTTPD project currently consist of four parts:
96 * `/samples` ? Simple examples on how to customize NanoHTTPD. See *HelloServer.java* for a killer app that greets you enthusiastically!
149 NanoHTTPD is a Maven based project and deployed to central. Most development environments have means to access the central repository. The coordinates to use in Maven are:
153 <groupId>org.nanohttpd</groupId> <!-- <groupId>com.nanohttpd</groupId> for 2.1.0 and earlier -->
154 <artifactId>nanohttpd</artifactId>
159 The coordinates for your development environment should correspond to these. When looking for an older version take care because we switched groupId from *com.nanohttpd* to *org.nanohttpd* in mid 2015.
161 Next it depends what you are useing nanohttpd for, there are tree main usages.
169 [group: 'org.nanohttpd', name: 'nanohttpd', version: '2.2.0'],
177 For a specialized HTTP (HTTPS) service you can use the module with artifactId *nanohttpd*.
180 <groupId>org.nanohttpd</groupId> <!-- <groupId>com.nanohttpd</groupId> for 2.1.0 and earlier -->
181 <artifactId>nanohttpd</artifactId>
185 Here you write your own subclass of *fi.iki.elonen.NanoHTTPD* to configure and to serve the requests.
189 For a specialized websocket service you can use the module with artifactId *nanohttpd-websocket*.
192 <groupId>org.nanohttpd</groupId> <!-- <groupId>com.nanohttpd</groupId> for 2.1.0 and earlier -->
193 <artifactId>nanohttpd-websocket</artifactId>
201 For a more classic aproach, perhaps to just create a HTTP server serving mostly service files from your disk, you can use the module with artifactId *nanohttpd-webserver*.
204 <groupId>org.nanohttpd</groupId>
205 <artifactId>nanohttpd-webserver</artifactId>
217 <artifactId>nanohttpd</artifactId>
218 <groupId>org.nanohttpd</groupId>
242 server.makeSecure(NanoHTTPD.makeSSLSocketFactory("/keystore.jks", "password".toCharArray()));
244 Before you start the server to make Nanohttpd serve https connections, when you make sure 'keystore.jks' is in your classpath .