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

NAME

6       POE::Component::Client::HTTP::RequestFactory - an HTTP request factory
7       object
8

VERSION

10       version 0.949
11

SYNOPSIS

13         # Used internally by POE::Component::Client::HTTP
14

CONSTRUCTOR

16   new
17       Create a new request factory object. It expects its parameters in a
18       hashref.
19
20       The following parameters are accepted.  They are explained in detail in
21       POE::Component::Client::HTTP.
22
23       •   Agent
24
25       •   MaxSize
26
27       •   Streaming
28
29       •   Protocol
30
31       •   From
32
33       •   CookieJar
34
35       •   NoProxy
36
37       •   Proxy
38
39       •   FollowRedirects
40
41       •   Timeout
42

METHODS

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