Branch: Tag:

2015-12-14

2015-12-14 17:10:45 by Per Hedbor <ph@opera.com>

Protocols.HTTP now takes 0.08 instead of 0.23s to load.

Made Protocol.DNS, SSL and the Calendar module on-demand-loaded.

18:   //! @[Request.follow_redirects]   int follow_redirects=20;    + #define RUNTIME_RESOLV(X) master().resolv(#X) +    //! Default HTTP headers.   mapping default_headers = ([    "user-agent":"Mozilla/5.0 (compatible; MSIE 6.0; Pike HTTP client)"
411:    "Cookie(%O: %O=%O; expires=%s; path=%O; domain=%O; secure=%d)",    site,    key,data, -  Calendar.ISO.Second(expires)->format_http(), +  RUNTIME_RESOLVE(Calendar.ISO.Second)(expires)->format_http(),    path,domain,secure);    }   
434:    {    case "expires":    expires= -  (Calendar.ISO.parse("%e, %D %M %Y %h:%m:%s %z",value)|| -  Calendar.ISO.parse("%e, %D-%M-%y %h:%m:%s %z",value) ) +  (RUNTIME_RESOLV(Calendar.ISO.parse)("%e, %D %M %Y %h:%m:%s %z",value)|| +  RUNTIME_RESOLV(Calendar.ISO.parse)("%e, %D-%M-%y %h:%m:%s %z",value) )    ->unix_time();    break;