Skip to content

async aware http server library for janet

Notifications You must be signed in to change notification settings

joy-framework/janet-ahttp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Janet ahttp

ahttp is an async aware http server for janet. Requests may happen concurrently using janet's native coroutines.

Documentation pending...

Example

(import ahttp)

(defn handler 
  [req]
  @{:status 200
    :body "hello!"
    :headers {"Content-Type" "text/plain"}})

(defn main
  [&]
  (ahttp/server "localhost" 8080 handler))

About

async aware http server library for janet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published