Guillem Jover
155873d532
TT#68300 Cache user agent and base URL in the object
...
Instead of recomputing these every time we do a request, cache them
and reuse to avoid the object construction time, when we do not need
different constructor arguments over time.
Change-Id: I4d6039fc312a4e453a9eac6d59fe28f877613a6b
6 years ago
Guillem Jover
1a131b07cb
TT#68300 Do not pass unused $uri argument to _create_ua() method
...
The argument is not being used at all within the method.
Change-Id: Ic8f21126acfa6eaeb8a64bd0428ed05298838aa5
6 years ago
Guillem Jover
e9afef4b07
TT#68300 Move new method after the private methods
...
We'll start using them, and defining new() after these makes following
the code easier.
Change-Id: I8e6ce5b73e9320ebda1f5257d49cec666ea13441
6 years ago
Guillem Jover
aebb98bab2
TT#68300 Switch to modern JSON::XS and encode/decode_json()
...
The to/from_json() are deprecated functions, which we should not be
using. Switch to the new ones, which also means we can stop encoding
the strings to and from UTF-8 explicitly.
Change-Id: Ie29371d532a51a3a62d54c35d22a6d488fe1b513
6 years ago
Guillem Jover
7138971163
TT#68300 Use parent instead of base
...
The former is more lightweight and the current recommended pragma.
Change-Id: I19bb73df214f82f65620fb38f1efa9820c1a9e4a
6 years ago
Flaviu Mates
625692f35d
TT#53575 Fix next page method
...
* use URI in order to remove doubling of query parameters
because they were seen as array refs
Change-Id: I73e25860381d4dcba0197b40d603a6d4933b6b84
6 years ago
Rene Krenn
9a8c580f00
TT#35715 tolerate collection uris including pagination query params
...
Change-Id: I8e6d826a32acdfbed821e3b28ed4e45b15909f5d
7 years ago
Kirill Solomko
bb51c3ee49
TT#35715 ensure that next_page() retains original query params
...
* it is important that next_page() retains the original
query params via links->next->href as otherwise
that leads to unpredicted results and no filtering
Change-Id: I8606a9fa03758eb214c7aa38958f158f2cc1a16e
7 years ago
Irina Peshinskaya
d0d36863b8
TT#34260 Load Encode library
...
Change-Id: I6f7ea6cc63fee20c71a8286b932baeb06682cff7
7 years ago
Andreas Granig
23f48a5758
TT#34260 Send UTF-8 content
...
Change-Id: I78f9550c515d9176382262e9f680ff2f2ba2bbf8
7 years ago
Kirill Solomko
667ab05ac3
TT#26808 use read_timeout for the UA timeout
...
* read_timeout value is used to define
the default UA timeout, it fallbacks to 180 if not set
Change-Id: I98f8f3df8434a048ee0e63c72052b8f0f3af189b
7 years ago
Rene Krenn
26d232437e
TT#18755 load full fraud event collection
...
Change-Id: I4d977e582ee2a201938dd26ab212c2982beec519
8 years ago
Rene Krenn
9f6af87d63
TT#19211 collection iteration support
...
Change-Id: I6221cff737f1392d166812e996b36056ba3f780e
8 years ago
Kirill Solomko
05f33681cf
MT#20341 add ssl_verify_loopback handling
...
Change-Id: I0a254bb4c06cb4dc1250a86d83740b0ffb689027
9 years ago
Kirill Solomko
82a1be5c3e
MT#17801 added NGCP::API::Client::Result->result() method
...
Change-Id: I439475ceb0da5e84b5c1cceac3c2dcdbb7cf1fd1
9 years ago
Kirill Solomko
ff1ecaaf00
MT#17801 NGCP::API::Client::Result uses HTTP::Response as base
...
Change-Id: Iea4921d133dd10146d5a632ddf5ee15fae1e61d9
9 years ago
Kirill Solomko
1f480bc458
MT#17801 added NGCP::API::Client
...
Change-Id: I13940fc97a6027bd8c3951620063853544cfb2a6
9 years ago