tango.net.http.model.HttpParamsView

License:
BSD style:

Version:
Initial release: April 2004

author:
Kris

abstract interface HttpParamsView;
Maintains a set of query parameters, parsed from an HTTP request. Use HttpParams instead for output parameters.

Note that these input params may have been encoded by the user- agent. Unfortunately there has been little consensus on what that encoding should be (especially regarding GET query-params). With luck, that will change to a consistent usage of UTF-8 within the near future.

abstract uint size();
Return the number of headers

abstract const(char)[] get(const(char)[] name, const(char)[] ret = null);
Return the value of the provided header, or null if the header does not exist

abstract int getInt(const(char)[] name, int ret = -1);
Return the integer value of the provided header, or the provided default-value if the header does not exist

abstract Time getDate(const(char)[] name, Time ret = Time.epoch);
Return the date value of the provided header, or the provided default-value if the header does not exist

abstract void produce(scope size_t delegate(const(void)[]) consume, const(char)[] eol = null);
Output the param list to the provided consumer


Page generated by Ddoc. Copyright (c) 2004 Kris Bell. All rights reserved