perl6/perl6-http-server

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

Homepage:

Size: 10

Language: Perl6

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

perl6-http-server

role stating something abides by some standard

roles & intentions

`HTTP::Server`

`Callable $sub`

This is the argument you can provide to any of the methods below

($req, $res) { 
<do some stuff>;  

handlers: `method handler(Callable $sub) {...}`
fter: ```method after(Callable $sub) {...}```
middleware: `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


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.