class

Bon::Web::Application

Inherits Reference < Object

Constructors

current
Source
new(options : Options, output_io : IO = STDOUT, error_io : IO = STDERR)
Source

Class methods

current=(application : Application) : Nil
Source
register_routes
Source
test_server(options = Options.new(host: "127.0.0.1", port: 0), output_io : IO = IO::Memory.new, error_io : IO = IO::Memory.new) : HTTP::Server
Source

Instance methods

browser_html?(request : HTTP::Request) : Bool
Source
error(env : HTTP::Server::Context, status : Int32, message : String, wants_html : Bool = false) : String
Source
handle_job_preview(env : HTTP::Server::Context) : String
Source
handle_job_print(env : HTTP::Server::Context) : String
Source
handle_job_status(env : HTTP::Server::Context) : String
Source
handle_jobs_create(env : HTTP::Server::Context) : String
Source
handle_print(env : HTTP::Server::Context) : String
Source
html(env : HTTP::Server::Context, status : Int32, body : String) : String
Source
method_not_allowed(env : HTTP::Server::Context) : String
Source
text(env : HTTP::Server::Context, status : Int32, body : String) : String
Source
too_large(env : HTTP::Server::Context, wants_html : Bool) : String
Source

Nested types