More yard doc

bug/bundler_fix
sinn3r 2015-03-25 02:26:06 -05:00
parent ded500a9ae
commit 9b9e157e84
1 changed files with 8 additions and 2 deletions

View File

@ -189,8 +189,14 @@ module Metasploit
# Sends a HTTP request with Rex # Sends a HTTP request with Rex
# #
# @param (see Rex::Proto::Http::Request#request_raw) # @param [Hash] Native support includes the following (also see Rex::Proto::Http::Request#request_cgi)
# @raise [Rex::ConnectionError] Something has gone wrong while sending the HTTP request # @option opts[String] 'host' The remote host
# @option opts[Fixnum] 'port' The remote port
# @option opts[Boolean] 'ssl' The SSL setting, TrueClass or FalseClass
# @option opts[String] 'proxies' The proxies setting
# @option opts[Credential] 'credential' A credential object
# @option opts['Hash'] 'context' A context
# @raise [Rex::ConnectionError] One of these errors has occured: EOFError, Errno::ETIMEDOUT, Rex::ConnectionError, ::Timeout::Error
# @return [Rex::Proto::Http::Response] The HTTP response # @return [Rex::Proto::Http::Response] The HTTP response
def send_request(opts) def send_request(opts)
rhost = opts['host'] || host rhost = opts['host'] || host