Skip to content

Commit 9b9e157

Browse files
committed
More yard doc
1 parent ded500a commit 9b9e157

File tree

1 file changed

+8
-2
lines changed
  • lib/metasploit/framework/login_scanner

1 file changed

+8
-2
lines changed

lib/metasploit/framework/login_scanner/http.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,14 @@ def check_setup
189189

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

0 commit comments

Comments
 (0)