Skip to content

andrewchambers/janet-ahttp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 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