Similar to XMLRPC::Client#call
, however can be called concurrently and use a new connection for each request. In contrast to the corresponding method without the _async
suffix, which use connect-alive (one connection for all requests).
Note, that you have to use Thread
to call these methods concurrently. The following example calls two methods concurrently:
Thread.new { p client.call_async("michael.add", 4, 5) } Thread.new { p client.call_async("michael.div", 7, 9) }
Same as XMLRPC::Client#call2
, but can be called concurrently.
See also XMLRPC::Client#call_async
Similar to XMLRPC::Client#multicall
, however can be called concurrently and use a new connection for each request. In contrast to the corresponding method without the _async
suffix, which use connect-alive (one connection for all requests).
Note, that you have to use Thread
to call these methods concurrently. The following example calls two methods concurrently:
Thread.new { p client.multicall_async("michael.add", 4, 5) } Thread.new { p client.multicall_async("michael.div", 7, 9) }
Same as XMLRPC::Client#multicall2
, but can be called concurrently.
See also XMLRPC::Client#multicall_async
Returns [ methodname, params ]
Adds the multi-call handler "system.multicall"
.
Similar to decode
with the difference that decode
expects one distinct value represented in der
. decode_all
on the contrary decodes a sequence of sequential BER/DER values lined up in der
and returns them as an array.
ders = File.binread('asn1data_seq') asn1_ary = OpenSSL::ASN1.decode_all(ders)
The total time used for garbage collection in seconds
As for each_header
, except the keys are provided in capitalized form.
Note that header names are capitalized systematically; capitalization may not match that used by the remote HTTP
server in its response.
Called when a tag is encountered. @p name the tag name @p attrs an array of arrays of attribute/value pairs, suitable for use with assoc or rassoc. IE, <tag attr1=“value1” attr2=“value2”> will result in tag_start
( “tag”, # [[“attr1”,“value1”],])
Calls the constructed BlockCaller
, with args
For an example see Fiddle::Closure::BlockCaller.new
Returns the challenge string associated with this SPKI
.
str
- the challenge string to be set for this instance
Sets the challenge to be associated with the SPKI
. May be used by the server, e.g. to prevent replay.
| FUNCTION_NAME ‘(’ ( expr ( ‘,’ expr )* )? ‘)’
Returns a challenge response which asks for authentication information
Returns a challenge response which asks for authentication information