picoev #
Description:
picoev
is a thin wrapper over picoev,
which in turn is "A tiny, lightning fast event loop for network applications".
fn new #
fn new(config Config) &Picoev
fn (Picoev) serve #
fn (p Picoev) serve()
struct Config #
struct Config {
pub:
port int = 8080
cb fn (voidptr, picohttpparser.Request, mut picohttpparser.Response)
err_cb fn (voidptr, picohttpparser.Request, mut picohttpparser.Response, IError) = default_err_cb
user_data voidptr = unsafe { nil }
timeout_secs int = 8
max_headers int = 100
}