… | |
… | |
106 | Additional parameters are key-value pairs, and are fully optional. |
106 | Additional parameters are key-value pairs, and are fully optional. |
107 | They include: |
107 | They include: |
108 | |
108 | |
109 | recurse => $count (default: $MAX_RECURSE) |
109 | recurse => $count (default: $MAX_RECURSE) |
110 | Whether to recurse requests or not, e.g. on redirects, |
110 | Whether to recurse requests or not, e.g. on redirects, |
111 | authentication retries and so on, and how often to do so. |
111 | authentication and other retries and so on, and how often to do |
|
|
112 | so. |
112 | |
113 | |
113 | headers => hashref |
114 | headers => hashref |
114 | The request headers to use. Currently, "http_request" may |
115 | The request headers to use. Currently, "http_request" may |
115 | provide its own "Host:", "Content-Length:", "Connection:" and |
116 | provide its own "Host:", "Content-Length:", "Connection:" and |
116 | "Cookie:" headers and will provide defaults at least for "TE:", |
117 | "Cookie:" headers and will provide defaults at least for "TE:", |
… | |
… | |
428 | |
429 | |
429 | $AnyEvent::HTTP::MAX_RECURSE |
430 | $AnyEvent::HTTP::MAX_RECURSE |
430 | The default value for the "recurse" request parameter (default: 10). |
431 | The default value for the "recurse" request parameter (default: 10). |
431 | |
432 | |
432 | $AnyEvent::HTTP::TIMEOUT |
433 | $AnyEvent::HTTP::TIMEOUT |
433 | The default timeout for conenction operations (default: 300). |
434 | The default timeout for connection operations (default: 300). |
434 | |
435 | |
435 | $AnyEvent::HTTP::USERAGENT |
436 | $AnyEvent::HTTP::USERAGENT |
436 | The default value for the "User-Agent" header (the default is |
437 | The default value for the "User-Agent" header (the default is |
437 | "Mozilla/5.0 (compatible; U; AnyEvent-HTTP/$VERSION; |
438 | "Mozilla/5.0 (compatible; U; AnyEvent-HTTP/$VERSION; |
438 | +http://software.schmorp.de/pkg/AnyEvent)"). |
439 | +http://software.schmorp.de/pkg/AnyEvent)"). |