X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http%2FParams.md;h=fb28bb1759489bccca43255bbe2280e21e80fce4;hb=9620c25e36f35fce0b77dedeedd97b6125b257ed;hp=44d90d34a7a43fb357aa70386609b02e3bb2666f;hpb=e62e3fe51ec3cd99e8141a22cb0daafe7f7a4bbe;p=mdref%2Fmdref-http diff --git a/http/Params.md b/http/Params.md index 44d90d3..fb28bb1 100644 --- a/http/Params.md +++ b/http/Params.md @@ -2,78 +2,6 @@ Parse, interpret and compose HTTP (header) parameters. -## Changelog: - -Version | Change ---------|------- -2.0.1 | Added [RFC5987](http://tools.ietf.org/html/rfc5987) support - -## Example: - - params, $p->toString()); - - ?> - -Yields: - - array(3) { - ["p1"]=> - array(2) { - ["*rfc5987*"]=> - array(1) { - ["de"]=> - string(5) "süß" - } - ["arguments"]=> - array(0) { - } - } - ["p2"]=> - array(2) { - ["*rfc5987*"]=> - array(1) { - [""]=> - string(5) "heiß" - } - ["arguments"]=> - array(2) { - ["*rfc5987*"]=> - array(2) { - ["a1"]=> - array(1) { - [""]=> - string(3) "aß" - } - ["a2"]=> - array(1) { - [""]=> - string(3) "eß" - } - } - ["a3"]=> - string(2) "no" - } - } - ["p3"]=> - array(2) { - ["value"]=> - string(3) "not" - ["arguments"]=> - array(0) { - } - } - } - string(98) "p1*=utf-8'de's%C3%BC%C3%9F,p2*=utf-8''hei%C3%9F;a1*=utf-8''a%C3%9F;a2*=utf-8''e%C3%9F;a3=no,p3=not" - - ## Constants: * DEF_PARAM_SEP @@ -88,14 +16,18 @@ Yields: Do not interpret the parsed parameters. * PARSE_DEFAULT Interpret input as default formatted parameters. +* PARSE_ESCAPED + Parse backslash escaped (quoted) strings. * PARSE_URLENCODED Urldecode single units of parameters, arguments and values. * PARSE_DIMENSION Parse sub dimensions indicated by square brackets. * PARSE_QUERY Parse URL querystring (same as http\Params::PARSE_URLENCODED|http\Params::PARSE_DIMENSION). -* PARSE_RFC5987 +* PARSE_RFC5987 Parse [RFC5987](http://tools.ietf.org/html/rfc5987) style encoded character set and language information embedded in HTTP header params. +* PARSE_RFC5988 + Parse [RFC5988](http://tools.ietf.org/html/rfc5988) (Web Linking) tags of Link headers. ## Properties: