Class: Msf::RPC::JSON::Notification
- Defined in:
- lib/msf/core/rpc/json/request.rb
Overview
Represents a JSON-RPC Notification. This is an EM::Deferrable class and instances respond to #callback and #errback to store callback actions.
Constant Summary
Constants inherited from Request
Request::JSON_MEDIA_TYPE, Request::JSON_RPC_ERROR_RESPONSE_MEMBER_TYPES, Request::JSON_RPC_ERROR_RESPONSE_REQUIRED_MEMBERS, Request::JSON_RPC_RESPONSE_MEMBER_TYPES, Request::JSON_RPC_RESPONSE_REQUIRED_MEMBERS, Request::JSON_RPC_VERSION
Instance Method Summary collapse
-
#initialize(uri, api_token: nil, method:, params: nil, namespace: nil, symbolize_names: true, private_key_file: nil, cert_chain_file: nil, verify_peer: nil) ⇒ Notification
constructor
Instantiate a Notification.
Methods inherited from Request
Constructor Details
#initialize(uri, api_token: nil, method:, params: nil, namespace: nil, symbolize_names: true, private_key_file: nil, cert_chain_file: nil, verify_peer: nil) ⇒ Notification
Instantiate a Notification.
211 212 213 214 215 216 217 218 219 220 221 222 223 224 |
# File 'lib/msf/core/rpc/json/request.rb', line 211 def initialize(uri, api_token: nil, method:, params: nil, namespace: nil, symbolize_names: true, private_key_file: nil, cert_chain_file: nil, verify_peer: nil) super(uri, api_token: api_token, method: method, params: params, namespace: namespace, symbolize_names: symbolize_names, is_notification: true, private_key_file: private_key_file, cert_chain_file: cert_chain_file, verify_peer: verify_peer) end |