Class: Net::HTTPRedirection
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
| Subclasses: | |
| Super Chains via Extension / Inclusion / Inheritance | |
| Class Chain: 
          self,
           HTTPResponse | |
| Instance Chain: 
          self,
           HTTPResponse,HTTPHeader | |
| Inherits: | Net::HTTPResponse 
 | 
| Defined in: | lib/net/http/responses.rb | 
Overview
3xx
Constant Summary
- 
    EXCEPTION_TYPE =
    
 # File 'lib/net/http/responses.rb', line 22HTTPRetriableError
- 
    HAS_BODY =
    
 # File 'lib/net/http/responses.rb', line 21true
HTTPResponse - Inherited
  
Class Attribute Summary
HTTPResponse - Inherited
| .body_permitted? | true if the response has a body. | 
Class Method Summary
HTTPResponse - Inherited
| .each_response_header, .read_status_line, .response_class, | |
| .exception_type | internal use only. | 
| .new | internal use only. | 
| .read_new | internal use only. | 
Instance Attribute Summary
HTTPResponse - Inherited
| #body | Returns the full entity body. | 
| #body= | Because it may be necessary to modify the body, Eg, decompression this method facilitates that. | 
| #body_encoding | The encoding to use for the response body. | 
| #body_encoding= | Set the encoding to use for the response body. | 
| #code | The HTTP result code string. | 
| #decode_content | Set to true automatically when the request did not contain an Accept-Encoding header from the user. | 
| #http_version | The HTTP version supported by the server. | 
| #ignore_eof | Whether to ignore EOF when reading bodies with a specified Content-Length header. | 
| #message | The HTTP result message sent by the server. | 
| #uri | The URI used to fetch this response. | 
| #entity | Alias for HTTPResponse#body. | 
| #msg | Alias for HTTPResponse#message. | 
| #uri= | |
HTTPHeader - Included
| #chunked? | Returns “true” if the “transfer-encoding” header is present and set to “chunked”. | 
| #connection_close?, #connection_keep_alive?, | |
| #content_length | Returns an Integer object which represents the  | 
| #content_length= | |
Instance Method Summary
HTTPResponse - Inherited
| #inspect, | |
| #read_body | Gets the entity body returned by the remote  | 
| #value | Raises an  | 
| #extracting_encodings_from_meta_elements, #get_attribute, #procdest, #read_body_0, #stream_check, | |
| #code_type | response <-> exception relationship. | 
| #error!, #error_type, #header, #read_header, | |
| #reading_body | body. | 
| #response | header (for backward compatibility only; DO NOT USE). | 
| #check_bom, #detect_encoding, | |
| #inflater | Checks for a supported Content-Encoding header and yields an Inflate wrapper for this response’s socket when zlib is present. | 
| #read_chunked | read_chunked reads from  | 
| #scanning_meta, #sniff_encoding | |
HTTPHeader - Included
| #[] | Returns the header field corresponding to the case-insensitive key. | 
| #[]= | Sets the header field corresponding to the case-insensitive key. | 
| #add_field | 
 | 
| #basic_auth | Set the Authorization: header for “Basic” authorization. | 
| #canonical_each | Alias for HTTPHeader#each_capitalized. | 
| #content_range | Returns a Range object which represents the value of the Content-Range: header field. | 
| #content_type | Returns a content type string such as “text/html”. | 
| #content_type= | Alias for HTTPHeader#set_content_type. | 
| #delete | Removes a header field, specified by case-insensitive key. | 
| #each | Alias for HTTPHeader#each_header. | 
| #each_capitalized | As for  | 
| #each_capitalized_name | Iterates through the header names in the header, passing capitalized header names to the code block. | 
| #each_header | Iterates through the header names and values, passing in the name and value to the code block supplied. | 
| #each_key | Alias for HTTPHeader#each_name. | 
| #each_name | Iterates through the header names in the header, passing each header name to the code block. | 
| #each_value | Iterates through header values, passing each value to the code block. | 
| #fetch | Returns the header field corresponding to the case-insensitive key. | 
| #form_data= | Alias for HTTPHeader#set_form_data. | 
| #get_fields | 
 | 
| #initialize_http_header, | |
| #key? | true if  | 
| #main_type | Returns a content type string such as “text”. | 
| #proxy_basic_auth | Set Proxy-Authorization: header for “Basic” authorization. | 
| #range | Returns an Array of Range objects which represent the Range:  | 
| #range= | Alias for HTTPHeader#set_range. | 
| #range_length | The length of the range represented in Content-Range: header. | 
| #set_content_type | Sets the content type in an  | 
| #set_form | Set an HTML form data set. | 
| #set_form_data | Set header fields and a body from HTML form data. | 
| #set_range | Sets the  | 
| #sub_type | Returns a content type string such as “html”. | 
| #to_hash | Returns a Hash consisting of header names and array of values. | 
| #type_params | Any parameters specified for the content type, returned as a Hash. | 
| #append_field_value, #basic_encode, #capitalize, #set_field, | |
| #length | Alias for HTTPHeader#size. | 
| #size | obsolete. | 
Constructor Details
This class inherits a constructor from Net::HTTPResponse