http
General purpose data, functions, and utilities for use by LFE HTTP clients, servers, URL-parsers, web frameworks, etc.
Table of Contents
Features ↟
-
Request maps:
(http.request:new 'get "http://example.com") -
Response maps:
(http.response:new 200 #m(#"content-type" #"text-plain") #"") -
Headers:
(http.header:list->map '(#(content-type #"text/plain"))) -
Interoperability with the Erlang stdlib
httpclibrary:(http.c:request "http://google.com") -
+150 status codes:
(http.status:im-a-teapot) -
+2000 mime types:
(http.mimetype:application/json))
Installation ↟
Add it to your rebar.config deps:
{deps, [
...
{http, "0.5.3", {pkg, lfe_http}}
]}.License ↟
Apache License, Version 2.0
Copyright © 2023-2024, Duncan McGreggor oubiwann@gmail.com.