Roxen.git / server / etc / modules / HTTPClient.pmod

version» Context lines:

Roxen.git/server/etc/modules/HTTPClient.pmod:109:    Protocols.HTTP.Session.URL uri,    void|Arguments args,    void|bool async)   {    if (!args) {    args = Arguments();    }       Result res;    Session s = Session(); +  if (args && args->follow_redirects > -1) { +  s->follow_redirects = args->follow_redirects; +  }    object /* Session.Request */ qr;    Thread.Queue q;    mixed co_maxtime;       if (args->maxtime) s->maxtime = args->maxtime;    if (args->timeout) s->timeout = args->timeout;       if (!async) {    q = Thread.Queue();    }
Roxen.git/server/etc/modules/HTTPClient.pmod:219:         class Arguments   {    //! Data fetch timeout    int timeout;       //! Request timeout    int maxtime;    +  //! Number of times to follow redirects. A negative value will result in a +  //! default value being used. +  int follow_redirects = -1; +     //! Additional request headers    mapping(string:string) headers;       //! Query variables    mapping(string:mixed) variables;       //! POST data    void|string|mapping data;       //! Callback to call on successful async request