Branch: Tag:

2009-01-29

2009-01-29 13:07:51 by Martin Nilsson <mani@lysator.liu.se>

Changed query_variables to allow array(string) as mapping value as well. Needed to create multi-select requests.

Rev: lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:1.58

84:   //! @[do_sync_method()]   .Query do_method(string method,    string|Standards.URI url, -  void|mapping(string:int|string) query_variables, +  void|mapping(string:int|string|array(string)) query_variables,    void|mapping(string:string|array(string)) request_headers,    void|Protocols.HTTP.Query con, void|string data)   {
150:   }      protected .Query do_udp_method(string method, Standards.URI url, -  void|mapping(string:int|string) query_variables, +  void|mapping(string:int|string|array(string)) query_variables,    void|mapping(string:string|array(string))    request_headers, void|Protocols.HTTP.Query con,    void|string data)
219:   //! @[do_method()], @[Query.set_callbacks()]   void do_async_method(string method,    string|Standards.URI url, -  void|mapping(string:int|string) query_variables, +  void|mapping(string:int|string|array(string)) query_variables,    void|mapping(string:string|array(string)) request_headers,    Protocols.HTTP.Query con, void|string data)   {
300:   //! can be used for the next request, you may gain some performance.   //!   .Query get_url(string|Standards.URI url, -  void|mapping(string:int|string) query_variables, +  void|mapping(string:int|string|array(string)) query_variables,    void|mapping(string:string|array(string)) request_headers,    void|Protocols.HTTP.Query con)   {
316:   //!   .Query put_url(string|Standards.URI url,    void|string file, -  void|mapping(string:int|string) query_variables, +  void|mapping(string:int|string|array(string)) query_variables,    void|mapping(string:string|array(string)) request_headers,    void|Protocols.HTTP.Query con)   {
331:   //! can be used for the next request, you may gain some performance.   //!   .Query delete_url(string|Standards.URI url, -  void|mapping(string:int|string) query_variables, +  void|mapping(string:int|string|array(string)) query_variables,    void|mapping(string:string|array(string)) request_headers,    void|Protocols.HTTP.Query con)   {
343:   //! upon failure. Redirects (HTTP 302) are automatically followed.   //!   array(string) get_url_nice(string|Standards.URI url, -  void|mapping(string:int|string) query_variables, +  void|mapping(string:int|string|array(string)) query_variables,    void|mapping(string:string|array(string)) request_headers,    void|Protocols.HTTP.Query con)   {
365:   //! Redirects (HTTP 302) are automatically followed.   //!   string get_url_data(string|Standards.URI url, -  void|mapping(string:int|string) query_variables, +  void|mapping(string:int|string|array(string)) query_variables,    void|mapping(string:string|array(string)) request_headers,    void|Protocols.HTTP.Query con)   {
376:   //! Similar to @[get_url], except that query variables is sent as a   //! POST request instead of a GET request.   .Query post_url(string|Standards.URI url, -  mapping(string:int|string) query_variables, +  mapping(string:int|string|array(string)) query_variables,    void|mapping(string:string|array(string)) request_headers,    void|Protocols.HTTP.Query con)   {
391:   //! Similar to @[get_url_nice], except that query variables is sent as   //! a POST request instead of a GET request.   array(string) post_url_nice(string|Standards.URI url, -  mapping(string:int|string) query_variables, +  mapping(string:int|string|array(string)) query_variables,    void|mapping(string:string|array(string)) request_headers,    void|Protocols.HTTP.Query con)   {
402:   //! Similar to @[get_url_data], except that query variables is sent as   //! a POST request instead of a GET request.   string post_url_data(string|Standards.URI url, -  mapping(string:int|string) query_variables, +  mapping(string:int|string|array(string)) query_variables,    void|mapping(string:string|array(string)) request_headers,    void|Protocols.HTTP.Query con)   {