Class: Arachni::RPC::Request
- Defined in:
- lib/arachni/rpc/request.rb
Overview
Represents an RPC request.
It’s here only for formalization purposes, it’s not actually sent over the wire.
What is sent is a hash generated by Message#prepare_for_tx. which is in the form of:
{
# RPC message in the form of 'handler.method'.
'message' => msg,
# Optional array of arguments for the remote method.
'args' => args,
# Optional authentication token.
'token' => token
}
Any client that has SSL support and can serialize a Hash just like the one above can communicate with the RPC server.
Instance Attribute Summary collapse
-
#args ⇒ Array
Optional arguments for the remote method.
-
#callback ⇒ Proc
Callback to be invoked on the response.
-
#message ⇒ String
RPC message in the form of ‘handler.method’.
-
#token ⇒ String
Optional authentication token.
Method Summary
Methods inherited from Message
#initialize, #merge!, #prepare_for_tx
Constructor Details
This class inherits a constructor from Arachni::RPC::Message
Instance Attribute Details
#args ⇒ Array
Returns Optional arguments for the remote method.
42 43 44 |
# File 'lib/arachni/rpc/request.rb', line 42 def args @args end |
#callback ⇒ Proc
Returns Callback to be invoked on the response.
50 51 52 |
# File 'lib/arachni/rpc/request.rb', line 50 def callback @callback end |
#message ⇒ String
Returns RPC message in the form of ‘handler.method’.
38 39 40 |
# File 'lib/arachni/rpc/request.rb', line 38 def @message end |
#token ⇒ String
Returns Optional authentication token.
46 47 48 |
# File 'lib/arachni/rpc/request.rb', line 46 def token @token end |