ace v0.13.1 Ace.Raxx.Handler View Source

Using the Raxx handler is the simplest way to get a worker started.

The Raxx handler is provided when simple request -> response usecases.

defmodule MyApp.SimpleHandler do
  use Ace.Raxx.Handler

  def handle_request(_request, _config) do
    Raxx.Response.ok("Hello, World!", [{"content-length", "13"}])
  end
end

Link to this section Summary

Link to this section Functions

Link to this function dispatch_request(request, arg) View Source
Link to this function handle_request(request, app, stream, bool) View Source