Module: Ronin::Network::Mixins::HTTP

Includes:
Mixin, HTTP
Defined in:
lib/ronin/network/mixins/http.rb

Overview

Adds HTTP convenience methods and connection parameters to a class.

Defines the following parameters:

  • `host` (`String`) - HTTP host.

  • `port` (`Integer`) - HTTP port. Defaults to `Net::HTTP.default_port`.

  • `http_vhost` (`String`) - HTTP Host header to send.

  • `http_user` (`String`) - HTTP user to authenticate as.

  • `http_password` (`String`) - HTTP password to authenticate with.

  • `http_proxy` - HTTP proxy information.

  • `http_user_agent` (`String`) - HTTP User-Agent header to send.

Method Summary

Methods included from Mixin

included

Methods included from HTTP

expand_options, expand_url, header_name, headers, #http_connect, #http_get_headers, #http_post_headers, proxy, proxy=, request, user_agent, user_agent=