No description, website, or topics provided.
Other
Switch branches/tags
Nothing to show
Latest commit 7f10c0b Jun 15, 2017 @retupmoca committed on GitHub Merge pull request #4 from zoffixznet/patch-1
Use modern META filename
Permalink
Failed to load latest commit information.
lib/HTTP Follow GLR changes Oct 23, 2015
t fix test plan Mar 18, 2015
.travis.yml Add travis configuration file Oct 24, 2015
LICENSE Initial commit Mar 17, 2015
META6.json Use modern META filename Apr 25, 2017
README.md doc stuff Mar 18, 2015

README.md

module HTTP::ParseParams

Parses cookies, query parameters, and post data from HTTP requests.

sub parse

sub parse(
    Str $data, 
    Bool :cookie($cookie), 
    Bool :urlencoded($urlencoded) is copy, 
    Bool :formdata($formdata) is copy, 
    Str :content-type($content-type)
) returns Hash

Pass in some data and a type, and get back a hash containing the passed parameters

Pass :cookie for cookie data, :urlencoded for query parameters or x-www-form-urlencoded postdata, or :formdata for multipart/form-data postdata.

Alternatively, pass :content-type(...) to have the function pick the correct postdata encoding for you. Will die if we don't recognize the content type.

Note that multipart/form-data parsing is NYI