1POE::Component::Client:U:sHeTrTPC:o:nRterPqiOubEeu:st:teCFdoamcPpteoornrleyn(Dt3o:)c:uCmleinetnatt:i:oHnTTP::RequestFactory(3)
2
3
4

CONSTRUCTOR

6   new
7       Create a new request factory object. It expects its parameters in a
8       hashref.
9
10       The following parameters are accepted.  They are explained in detail in
11       POE::Component::Client::HTTP.
12
13       ·   Agent
14
15       ·   MaxSize
16
17       ·   Streaming
18
19       ·   Protocol
20
21       ·   From
22
23       ·   CookieJar
24
25       ·   NoProxy
26
27       ·   Proxy
28
29       ·   FollowRedirects
30
31       ·   Timeout
32

METHODS

34   timeout [$timeout]
35       Method that lets you query and/or change the timeout value for requests
36       created by this factory.
37
38   is_streaming
39       Accessor for the Streaming parameter
40
41   agent
42       Accessor to the Agent parameter
43
44   from
45       getter/setter for the From parameter
46
47   create_request
48       Creates a new POE::Component::Client::HTTP::Request
49
50   max_response_size
51       Method to retrieve the maximum size of a response, as set by the
52       "MaxSize" parameter to Client::HTTP's "spawn()" method.
53
54   block_size
55       Accessor for the Streaming parameter
56
57   frob_cookies $response
58       Store the cookies from the HTTP::Response parameter passed into our
59       cookie jar
60
61   max_redirect_count [$count]
62       Function to get/set the maximum number of redirects to follow
63       automatically. This allows you to retrieve or modify the value you
64       passed with the FollowRedirects parameter to Client::HTTP's "spawn"
65       method.
66
67   parse_proxy $proxy
68       This static method is used for parsing proxies. The $proxy can be array
69       reference like [host, port] or comma separated string like
70       "http://1.2.3.4:80/,http://2.3.4.5:80/".
71
72       parse_proxy() returns an array reference of two-element tuples (also
73       array ferences), each containing a host and a port:
74
75         [ [ host1, port1 ],
76           [ host2, port2 ],
77           ...
78         ]
79
80
81
82perl v5.12.0                   POE2:0:1C0o-m0p2o-n1e5nt::Client::HTTP::RequestFactory(3)
Impressum