pike.git / lib / modules / Protocols.pmod / HTTP.pmod / Session.pike

version» Context lines:

pike.git/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike:365:    void check_for_cookies()    {    if (!con->ok || !con->headers || !cookie_encountered) return;       foreach (con->headers["set-cookie"]||({});;string cookie)    cookie_encountered(cookie,url_requested);    }      // ----------------    - //! @[destroy] is called when an object is destructed. +    //! But since this clears the HTTP connection from the Request object,   //! it can also be used to reuse a @[Request] object.    void destroy()    {    if (con) return_connection(url_requested,con);    con=0;    }    -  + //! @[_destruct] is called when an object is destructed. +  protected void _destruct() +  { +  destroy(); +  } +    // ----------------       string _sprintf(int t)    {    if (t=='O')    return sprintf("Request(%O",(string)url_requested)+    (!con?" - no connection"    :((con->con?" - connected":"")+    (!con->ok?" - failed"    :" - "+(sizeof(con->buf)+" bytes received"))))+