Skip to content
/ Nephia Public

A mini sized WAF that was revived like hell-knight via boson jump

License

Notifications You must be signed in to change notification settings

nephia/Nephia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Nephia - A microcore architecture WAF

SYNOPSIS

use Nephia plugins => [...];
app {
    my $req  = req;         ### Request object
    my $id   = param('id'); ### query-param that named "id" 
    my $body = sprintf('ID is %s', $id);
    [200, [], $body];
};

DESCRIPTION

Nephia is microcore architecture WAF.

GETTING STARTED

Let's try to create your project.

nephia-setup YourApp::Web

Then, you may plackup on your project directory.

Please see Nephia::Setup::Plugin::Basic for detail.

BOOTSTRAP A MINIMALIST STRUCTURE

Use "--plugins Minimal" option to minimalistic setup.

nephia-setup --plugins Minimal YourApp::Mini

Please see Nephia::Setup::Plugin::Minimal for detail.

LOAD OPTIONS

Please see Nephia::Core.

DSL

app

app { ... };

Specify code-block of your webapp.

other two basic DSL

Please see Nephia::Plugin::Basic.

dispatcher DSL

Please see Nephia::Plugin::Dispatch.

EXPORTS

run

In app.psgi, run() method returns your webapp as coderef.

use YourApp::Web;
YourApp::Web->run;

CLASS METHOD

call

Returns external logic as coderef.

my $external_logic = Nephia->call('C::Root#index');

LICENSE

Copyright (C) ytnobody.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

ytnobody [email protected]

About

A mini sized WAF that was revived like hell-knight via boson jump

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages