All Projects β†’ rockem β†’ Blink Java

rockem / Blink Java

Licence: apache-2.0
Simplified pure Java http server

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Blink Java

Study
A simple, progressive, client/server AB testing library πŸ“š
Stars: ✭ 293 (+2830%)
Mutual labels:  server, test
Create Test Server
Creates a minimal Express server for testing
Stars: ✭ 117 (+1070%)
Mutual labels:  server, test
Start Server And Test
Starts server, waits for URL, then runs test command; when the tests end, shuts down server
Stars: ✭ 879 (+8690%)
Mutual labels:  server, test
Javatech
β˜•οΈ 汇总 Java εΌ€ε‘δΈ­εΈΈθ§ηš„δΈ»ζ΅ζŠ€ζœ―ηš„εΊ”η”¨γ€η‰Ήζ€§γ€εŽŸη†γ€‚
Stars: ✭ 310 (+3000%)
Mutual labels:  server, test
Vue Stack
Minimalistic Boilerplate for FullStack Express and Vue.js applications
Stars: ✭ 26 (+160%)
Mutual labels:  server
Phpstorm Plugin
Integrate atoum inside PhpStorm
Stars: ✭ 23 (+130%)
Mutual labels:  test
Debian Server
Complete Debian/Ubuntu Web Application Server Installation
Stars: ✭ 22 (+120%)
Mutual labels:  server
Game Server
Distributed Java game server, including cluster management server, gateway server, hall server, game logic server, background monitoring server and a running web version of fishing. State machine, behavior tree, A* pathfinding, navigation mesh and other AI tools
Stars: ✭ 916 (+9060%)
Mutual labels:  server
Vertx Web
HTTP web applications for Vert.x
Stars: ✭ 853 (+8430%)
Mutual labels:  server
Ansible Role Docker
Ansible Role - Docker
Stars: ✭ 845 (+8350%)
Mutual labels:  server
Appserver
A multithreaded application server for PHP, written in PHP.
Stars: ✭ 930 (+9200%)
Mutual labels:  server
Pytest Patterns
A couple of examples showing how pytest and its plugins can be combined to solve real-world needs.
Stars: ✭ 24 (+140%)
Mutual labels:  test
Litecloud
User management system for the server (Home Cloud).
Stars: ✭ 26 (+160%)
Mutual labels:  server
React Generate Props
Generate default props based on your React component's PropTypes
Stars: ✭ 23 (+130%)
Mutual labels:  test
Puma
A Ruby/Rack web server built for parallelism
Stars: ✭ 6,924 (+69140%)
Mutual labels:  server
Local Web Server
A lean, modular web server for rapid full-stack development.
Stars: ✭ 916 (+9060%)
Mutual labels:  server
Srvs
Zero dependency dev server
Stars: ✭ 25 (+150%)
Mutual labels:  server
Charla
A IRC Server / Daemon written in Python using the circuits Application Framework.
Stars: ✭ 8 (-20%)
Mutual labels:  server
Hrscan2
A self-hosted drag-and-drop, nosql yet fully-featured file-scanning server.
Stars: ✭ 25 (+150%)
Mutual labels:  server
Skillbox Chat 08 19
Skillbox demo application for the Python course
Stars: ✭ 25 (+150%)
Mutual labels:  server

blink-java

CircleCI

blink is a simplified http server, made primarily for using in tests. It has no dependencies other than those that come with Oracle's Jdk and it's inspired by Spark and Sinatra frameworks.

Dependency

Maven

<repositories>
    <repository>
      <id>jcenter</id>
      <url>https://jcenter.bintray.com/</url>
    </repository>
</repositories>
<dependency>
    <groupId>org.rockem</groupId>
    <artifactId>blink-java</artifactId>
    <version>0.5.3</version>
</dependency>

Gradle

repositories {
    jcenter()
}
dependencies {
    compile 'org.rockem:blink-java:0.5.3'
}

Usage

Hello World

Java

new BlinkServer(1234) {{
	get("/hello", (req, res) -> "Hello World");
}};

Groovy

new BlinkServer(1234) {{
	get("/hello", { req, res -> "Hello World" })
}}

Path parameters

new BlinkServer(1234) {{
	delete("/hello/{id}", (req, res) -> "Delete " + req.pathParam("id"));
}};

Default content type

new BlinkServer(1234) {{
    contentType("application/json")
    get("/hello", (req, res) -> "{\"greeting\": \"Hello World\"}");
}};

Request

req.body()                      // request body
req.param("name")               // Query parameter
req.pathParam("name")           // Path parameter
req.uri()                       // Request uri
req.header("name")              // header value
req.cookie("name")              // cookie value

Response

res.status(201)                 // set retrun status code
res.header("name", "value")     // Set header 
res.type("type")                // Set content type
res.cookie("name", "value")     // Add/Update cookie
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].