Skip to content
/ lye Public

Your not yet super fast, not yet reliable, not yet modular, not yet extensible but some sort of HTTP/2 capable web server in Elixir

Notifications You must be signed in to change notification settings

OleMchls/lye

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lye

Your super fast (I hope it will be super fast), reliable, modular, extensible HTTP/2 web server in Elixir.

Usage

Lye has two ways of interacting with HTTP traffic:

Plug (high level api)

defmodule MyPlug do
  import Plug.Conn

  def init(options) do: options

  def call(conn, _opts) do
    conn
    |> put_resp_content_type("text/plain")
    |> send_resp(200, "Hello world")
  end
end
Lye::Plug.https MyPlug, []
# => {:ok, #PID<...>}

GenEvent (low level api)

Installation

If available in Hex, the package can be installed as:

  1. Add lye to your list of dependencies in mix.exs:

    def deps do [{:lye, "~> 0.0.1"}] end

  2. Ensure lye is started before your application:

    def application do [applications: [:lye]] end

About

Your not yet super fast, not yet reliable, not yet modular, not yet extensible but some sort of HTTP/2 capable web server in Elixir

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages