[Catalyst-dev] RT #34782: [WISH] Way to remove parameter from URI

Christopher H. Laco claco at chrislaco.com
Wed May 28 16:38:25 GMT 2008


J. Shirley wrote:
> On Wed, May 28, 2008 at 6:42 AM, Brian Cassidy <brian.cassidy at nald.ca> wr=
ote:
>> On behalf of "m.e <m.e at acm.org>":
>>
>> [WISH] Way to remove parameter from URI
>>
>> $c->req->uri_for() provides a way of adding an extra parameter to a URI
>> or overwriting an existinf parameter, but there is no way of removing an
>> existing parameter. URI::QueryParam provides a query_param_delete($key)
>> method; something like this would be nice.
>>
>> --
>>
>> The original RT ticket can be found here:
>>
>> http://rt.cpan.org/Ticket/Display.html?id=3D34782
>>
> =

> Looks like a patch for uri_with?  Maybe change the behavior for undef
> values to remove (right now they are ignored).  Then you can just do
> $c->req->uri_with({ foo =3D> undef });
> =

> Seems DWIW.
> =

> -J

jshirley++

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/catalyst-dev/attachments/20080528/=
5b99cc15/signature.pgp


More information about the Catalyst-dev mailing list