Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Protocols
Protocols.HTTP
Protocols.HTTP.Session
Protocols.HTTP.Session()->Request

Method Protocols.HTTP.Session()->Request()->prepare_method()


Method prepare_method

array(string|int|mapping) prepare_method(string method, URL url, void|mapping query_variables, void|mapping extra_headers, void|string data)

Description

Prepares the HTTP Query object for the connection, and returns the parameters to use with do_sync , do_async or do_thread .

This method will also use cookie information from the parent Session , and may reuse connections (keep-alive).