Name: perl6-http-server
Owner: Perl 6
Description: role stating something abides by some standard
Created: 2015-05-27 05:43:39.0
Updated: 2017-02-09 15:44:14.0
Pushed: 2017-04-25 14:23:13.0
Size: 10
Language: Perl6
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
role stating something abides by some standard
`HTTP::Server
``Callable $sub
`This is the argument you can provide to any of the methods below
($req, $res) {
<do some stuff>;
`method handler(Callable $sub) {...}
`fter: ```method after(Callable $sub) {...}```
`method middleware(Callable $sub) {...}
`isten: ```method listen {...}```
`HTTP::Request
`provides a generic `method header(*@headers)
` to retrieve headers in a case insensitive way
also provides some generic attributes for the class that should be present in any decent HTTP::Request
`HTTP::Response
`should provide methods `close($data?, :$force? = False)
and ``
write($data)```
also provides some generic attributes for the class that should be present in any decent HTTP::Response