From 7cfc97c5a7b4f7a247ef9c04d87e584096486822 Mon Sep 17 00:00:00 2001 From: tong Date: Thu, 18 Apr 2024 12:12:12 +0200 Subject: [PATCH] Update readme --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bbacf01..fac6c36 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@ -WTRI -==== -Embeddable haxe/sys web server. +# WTRI -[![Build](https://github.com/tong/wtri/actions/workflows/build.yml/badge.svg)](https://github.com/tong/wtri/actions/workflows/build.yml) +Embeddable haxe/sys web server. ## Embed + ```hx new wtri.Server((req,res)-> { Sys.println(req.path); res.end('Hello!'); }).listen(8080); ``` + See: [Main.hx](https://github.com/tong/wtri/blob/master/src/Main.hx) --- @@ -18,6 +18,7 @@ See: [Main.hx](https://github.com/tong/wtri/blob/master/src/Main.hx) ## Example server ### Build + ```sh git clone https://github.com/tong/wtri.git cd wtri/ @@ -33,6 +34,7 @@ make # HashlinkC ``` ### Run + ```sh Usage: wtri [options] @@ -44,3 +46,4 @@ Usage: wtri [options] [--help] : Print this help ``` +[![Build](https://github.com/tong/wtri/actions/workflows/build.yml/badge.svg)](https://github.com/tong/wtri/actions/workflows/build.yml)