# Net::HTTPGenericRequest (Class)

In: | net/http.rb
Parent: | Object

Parent of HTTPRequest class. Do not use this directly; use a subclass of HTTPRequest.

Mixes in the HTTPHeader module.

## Methods

body_exist? inspect new request_body_permitted? response_body_permitted?

## Attributes

method | [R] |
path | [R] |

## Included Modules

HTTPHeader

## Public Class methods

new( m, reqbody, resbody, path, initheader = nil )

[Source]

    # File net/http.rb, line 1102
        def initialize( m, reqbody, resbody, path, initheader = nil )
          @method = m
          @request_has_body = reqbody
          @response_has_body = resbody
          @path = path

          @header = {}
          return unless initheader
          initheader.each do |k,v|
            key = k.downcase
            $stderr.puts "net/http: warning: duplicated HTTP header: #{k}" if @header.key?(key) and $VERBOSE
            @header[key] = v.strip
          end
          @header['accept'] ||= '*/*'
        end

## Public Instance methods

inspect()

[Source]

    # File net/http.rb, line 1121
        def inspect
          "\#<#{self.class} #{@method}>"
        end

request_body_permitted?()

[Source]

    # File net/http.rb, line 1125
        def request_body_permitted?
          @request_has_body
        end

response_body_permitted?()

[Source]

    # File net/http.rb, line 1129
        def response_body_permitted?
          @response_has_body
        end

body_exist?()

Alias for response_body_permitted?

[Validate]