Table of Contents - net: Ruby Standard Library Documentation
Classes and Modules
- EXCEPTION_TYPE
- EXCEPTION_TYPE
- EXCEPTION_TYPE
- EXCEPTION_TYPE
- HTTPClientException
- HTTPGatewayTimeOut
- HTTPMovedTemporarily
- HTTPMultipleChoice
- HTTPRequestEntityTooLarge
- HTTPRequestTimeOut
- HTTPRequestURITooLarge
- HTTPRequestURITooLong
- HTTPRequestURITooLong
- HTTPRequestedRangeNotSatisfiable
- Net
- Net::APOP
- Net::APOPSession
- Net::FTP
- Net::FTP::MLSxEntry
-
Net::HTTP
- An HTTP client API for Ruby.
- Simple Examples
- GET
- GET by URI
- GET with Dynamic Parameters
- POST
- POST with Multiple Values
- How to use Net::HTTP
- Response Data
- Following Redirection
- POST
- Setting Headers
- Basic Authentication
- Streaming Response Bodies
- HTTPS
- Proxies
- Compression
- HTTP Request Classes
- HTTP Response Classes
- Net::HTTP::Copy
- Net::HTTP::Delete
- Net::HTTP::Get
- Net::HTTP::Head
- Net::HTTP::Lock
- Net::HTTP::Mkcol
- Net::HTTP::Move
- Net::HTTP::Options
- Net::HTTP::Patch
- Net::HTTP::Post
- Net::HTTP::Propfind
- Net::HTTP::Proppatch
- Net::HTTP::Put
- Net::HTTP::Trace
- Net::HTTP::Unlock
- Net::HTTPAccepted
- Net::HTTPAlreadyReported
- Net::HTTPBadGateway
- Net::HTTPBadRequest
- Net::HTTPClientError
- Net::HTTPConflict
- Net::HTTPContinue
- Net::HTTPCreated
- Net::HTTPEarlyHints
- Net::HTTPError
- Net::HTTPExceptions
- Net::HTTPExpectationFailed
- Net::HTTPFailedDependency
- Net::HTTPFatalError
- Net::HTTPForbidden
- Net::HTTPFound
- Net::HTTPGatewayTimeout
- Net::HTTPGenericRequest
- Net::HTTPGone
- Net::HTTPHeader
- Net::HTTPIMUsed
- Net::HTTPInformation
- Net::HTTPInsufficientStorage
- Net::HTTPInternalServerError
- Net::HTTPLengthRequired
- Net::HTTPLocked
- Net::HTTPLoopDetected
- Net::HTTPMethodNotAllowed
- Net::HTTPMisdirectedRequest
- Net::HTTPMovedPermanently
- Net::HTTPMultiStatus
- Net::HTTPMultipleChoices
- Net::HTTPNetworkAuthenticationRequired
- Net::HTTPNoContent
- Net::HTTPNonAuthoritativeInformation
- Net::HTTPNotAcceptable
- Net::HTTPNotExtended
- Net::HTTPNotFound
- Net::HTTPNotImplemented
- Net::HTTPNotModified
- Net::HTTPOK
- Net::HTTPPartialContent
- Net::HTTPPayloadTooLarge
- Net::HTTPPaymentRequired
- Net::HTTPPermanentRedirect
- Net::HTTPPreconditionFailed
- Net::HTTPPreconditionRequired
- Net::HTTPProcessing
- Net::HTTPProxyAuthenticationRequired
- Net::HTTPRangeNotSatisfiable
- Net::HTTPRedirection
- Net::HTTPRequest
- Net::HTTPRequestHeaderFieldsTooLarge
- Net::HTTPRequestTimeout
- Net::HTTPResetContent
- Net::HTTPResponse
- Net::HTTPRetriableError
- Net::HTTPSeeOther
- Net::HTTPServerError
- Net::HTTPServerException
- Net::HTTPServiceUnavailable
- Net::HTTPSuccess
- Net::HTTPSwitchProtocol
- Net::HTTPTemporaryRedirect
- Net::HTTPTooManyRequests
- Net::HTTPURITooLong
- Net::HTTPUnauthorized
- Net::HTTPUnavailableForLegalReasons
- Net::HTTPUnknownResponse
- Net::HTTPUnprocessableEntity
- Net::HTTPUnsupportedMediaType
- Net::HTTPUpgradeRequired
- Net::HTTPUseProxy
- Net::HTTPVariantAlsoNegotiates
- Net::HTTPVersionNotSupported
- Net::IMAP
- Net::IMAP::BadResponseError
- Net::IMAP::BodyTypeAttachment
- Net::IMAP::BodyTypeBasic
- Net::IMAP::BodyTypeExtension
- Net::IMAP::BodyTypeMessage
- Net::IMAP::BodyTypeMultipart
- Net::IMAP::BodyTypeText
- Net::IMAP::ByeResponseError
- Net::IMAP::CramMD5Authenticator
- Net::IMAP::DataFormatError
- Net::IMAP::DigestMD5Authenticator
- Net::IMAP::Error
- Net::IMAP::FlagCountError
- Net::IMAP::LoginAuthenticator
- Net::IMAP::NoResponseError
- Net::IMAP::NumValidator
- Net::IMAP::PlainAuthenticator
- Net::IMAP::ResponseError
- Net::IMAP::ResponseParseError
- Net::IMAP::UnknownResponseError
- Net::OpenTimeout
- Net::POP3
- Net::POPAuthenticationError
- Net::POPBadResponse
- Net::POPError
- Net::POPMail
- Net::ProtoAuthError
- Net::ProtoCommandError
- Net::ProtoFatalError
- Net::ProtoRetriableError
- Net::ProtoServerError
- Net::ProtoSyntaxError
- Net::ProtoUnknownError
- Net::ProtocRetryError
- Net::ProtocolError
- Net::ReadTimeout
- Net::SMTP
- Net::SMTP::Response
- Net::SMTPAuthenticationError
- Net::SMTPError
- Net::SMTPFatalError
- Net::SMTPServerBusy
- Net::SMTPSyntaxError
- Net::SMTPUnknownError
- Net::SMTPUnsupportedCommand
- Net::WriteAdapter
- Net::WriteTimeout
Methods
- ::APOP — Net::POP3
- ::Proxy — Net::HTTP
- ::add_authenticator — Net::IMAP
- ::auth_only — Net::POP3
- ::body_permitted? — Net::HTTPResponse
- ::certs — Net::POP3
- ::create_ssl_params — Net::POP3
- ::debug — Net::IMAP
- ::debug= — Net::IMAP
- ::decode_utf7 — Net::IMAP
- ::default_imap_port — Net::IMAP
- ::default_imaps_port — Net::IMAP
- ::default_passive — Net::FTP
- ::default_passive= — Net::FTP
- ::default_pop3_port — Net::POP3
- ::default_pop3s_port — Net::POP3
- ::default_port — Net::HTTP
- ::default_port — Net::IMAP
- ::default_port — Net::POP3
- ::default_port — Net::SMTP
- ::default_ssl_context — Net::SMTP
- ::default_ssl_port — Net::IMAP
- ::default_ssl_port — Net::SMTP
- ::default_submission_port — Net::SMTP
- ::default_tls_port — Net::IMAP
- ::default_tls_port — Net::SMTP
- ::delete_all — Net::POP3
- ::disable_ssl — Net::POP3
- ::each_response_header — Net::HTTPResponse
- ::enable_ssl — Net::POP3
- ::encode_utf7 — Net::IMAP
- ::ensure_mod_sequence_value — Net::IMAP::NumValidator
- ::ensure_number — Net::IMAP::NumValidator
- ::ensure_nz_number — Net::IMAP::NumValidator
- ::foreach — Net::POP3
- ::format_date — Net::IMAP
- ::format_datetime — Net::IMAP
- ::get — Net::HTTP
- ::get_print — Net::HTTP
- ::get_response — Net::HTTP
- ::http_default_port — Net::HTTP
- ::https_default_port — Net::HTTP
- ::is_version_1_2? — Net::HTTP
- ::max_flag_count — Net::IMAP
- ::max_flag_count= — Net::IMAP
- ::new — Net::FTP
- ::new — Net::FTP::MLSxEntry
- ::new — Net::HTTP
- ::new — Net::HTTP
- ::new — Net::HTTPGenericRequest
- ::new — Net::HTTPRequest
- ::new — Net::IMAP
- ::new — Net::IMAP::LoginAuthenticator
- ::new — Net::IMAP::PlainAuthenticator
- ::new — Net::IMAP::CramMD5Authenticator
- ::new — Net::IMAP::DigestMD5Authenticator
- ::new — Net::IMAP::ResponseError
- ::new — Net::POP3
- ::new — Net::ReadTimeout
- ::new — Net::WriteTimeout
- ::new — Net::WriteAdapter
- ::new — Net::SMTP
- ::new — Net::SMTP::Response
- ::newobj — Net::HTTP
- ::open — Net::FTP
- ::parse — Net::SMTP::Response
- ::post — Net::HTTP
- ::post_form — Net::HTTP
- ::proxy_class? — Net::HTTP
- ::read_status_line — Net::HTTPResponse
- ::response_class — Net::HTTPResponse
- ::ssl_params — Net::POP3
- ::start — Net::HTTP
- ::start — Net::POP3
- ::start — Net::SMTP
- ::use_ssl? — Net::POP3
- ::valid_mod_sequence_value? — Net::IMAP::NumValidator
- ::valid_number? — Net::IMAP::NumValidator
- ::valid_nz_number? — Net::IMAP::NumValidator
- ::verify — Net::POP3
- ::version_1_2 — Net::HTTP
- ::version_1_2? — Net::HTTP
- #<< — Net::WriteAdapter
- #D — Net::HTTP
- #[] — Net::HTTPHeader
- #[]= — Net::HTTPHeader
- #abort — Net::FTP
- #acct — Net::FTP
- #active? — Net::HTTP
- #active? — Net::POP3
- #add_field — Net::HTTPHeader
- #add_response_handler — Net::IMAP
- #addr_port — Net::HTTP
- #all — Net::POPMail
- #apop? — Net::POP3
- #apop? — Net::APOP
- #apop? — Net::APOP
- #append — Net::IMAP
- #append_field_value — Net::HTTPHeader
- #appendable? — Net::FTP::MLSxEntry
- #auth_capable? — Net::SMTP
- #auth_cram_md5 — Net::SMTP
- #auth_login — Net::SMTP
- #auth_method — Net::SMTP
- #auth_only — Net::POP3
- #auth_plain — Net::SMTP
- #authenticate — Net::IMAP
- #authenticate — Net::SMTP
- #base64_encode — Net::SMTP
- #basic_auth — Net::HTTPHeader
- #basic_encode — Net::HTTPHeader
- #begin_transport — Net::HTTP
- #binary= — Net::FTP
- #body — Net::HTTPResponse
- #body= — Net::HTTPGenericRequest
- #body= — Net::HTTPResponse
- #body_exist? — Net::HTTPGenericRequest
- #body_stream= — Net::HTTPGenericRequest
- #canonical_each — Net::HTTPHeader
- #capabilities — Net::SMTP::Response
- #capability — Net::IMAP
- #capable? — Net::SMTP
- #capable_auth_types — Net::SMTP
- #capable_cram_md5_auth? — Net::SMTP
- #capable_login_auth? — Net::SMTP
- #capable_plain_auth? — Net::SMTP
- #capable_starttls? — Net::SMTP
- #capitalize — Net::HTTPHeader
- #chdir — Net::FTP
- #check — Net::IMAP
- #check_auth_args — Net::SMTP
- #check_auth_continue — Net::SMTP
- #check_auth_method — Net::SMTP
- #check_auth_response — Net::SMTP
- #check_continue — Net::SMTP
- #check_response — Net::SMTP
- #chunked? — Net::HTTPHeader
- #close — Net::FTP
- #close — Net::IMAP
- #closed? — Net::FTP
- #connect — Net::FTP
- #connect — Net::HTTP
- #connection_close? — Net::HTTPHeader
- #connection_keep_alive? — Net::HTTPHeader
- #content_length — Net::HTTPHeader
- #content_length= — Net::HTTPHeader
- #content_range — Net::HTTPHeader
- #content_type — Net::HTTPHeader
- #content_type= — Net::HTTPHeader
- #continue? — Net::SMTP::Response
- #continue_timeout= — Net::HTTP
- #copy — Net::HTTP
- #copy — Net::IMAP
- #copy_internal — Net::IMAP
- #cram_md5_challenge — Net::SMTP::Response
- #cram_md5_response — Net::SMTP
- #cram_secret — Net::SMTP
- #creatable? — Net::FTP::MLSxEntry
- #create — Net::IMAP
- #create_ssl_params — Net::IMAP
- #critical — Net::SMTP
- #data — Net::SMTP
- #debug_output= — Net::SMTP
- #deletable? — Net::FTP::MLSxEntry
- #delete — Net::FTP
- #delete — Net::HTTP
- #delete — Net::IMAP
- #delete — Net::POPMail
- #delete — Net::HTTPHeader
- #delete! — Net::POPMail
- #delete_all — Net::POP3
- #deleted? — Net::POPMail
- #dir — Net::FTP
- #directory? — Net::FTP::MLSxEntry
- #directory_makable? — Net::FTP::MLSxEntry
- #disable_ssl — Net::POP3
- #disable_ssl — Net::SMTP
- #disable_starttls — Net::SMTP
- #disable_tls — Net::SMTP
- #disconnect — Net::IMAP
- #disconnected? — Net::IMAP
- #do_finish — Net::HTTP
- #do_finish — Net::SMTP
- #do_helo — Net::SMTP
- #do_start — Net::HTTP
- #do_start — Net::SMTP
- #each — Net::POP3
- #each — Net::HTTPHeader
- #each_capitalized — Net::HTTPHeader
- #each_capitalized_name — Net::HTTPHeader
- #each_header — Net::HTTPHeader
- #each_key — Net::HTTPHeader
- #each_mail — Net::POP3
- #each_name — Net::HTTPHeader
- #each_value — Net::HTTPHeader
- #edit_path — Net::HTTP
- #ehlo — Net::SMTP
- #enable_ssl — Net::POP3
- #enable_ssl — Net::SMTP
- #enable_starttls — Net::SMTP
- #enable_starttls_auto — Net::SMTP
- #enable_tls — Net::SMTP
- #encode_multipart_form_data — Net::HTTPGenericRequest
- #end_transport — Net::HTTP
- #enterable? — Net::FTP::MLSxEntry
- #entity — Net::HTTPResponse
- #examine — Net::IMAP
- #exception_class — Net::SMTP::Response
- #expunge — Net::IMAP
- #features — Net::FTP
- #fetch — Net::IMAP
- #fetch — Net::HTTPHeader
- #fetch_internal — Net::IMAP
- #file? — Net::FTP::MLSxEntry
- #finish — Net::HTTP
- #finish — Net::POP3
- #finish — Net::SMTP
- #flush_buffer — Net::HTTPGenericRequest
- #form_data= — Net::HTTPHeader
- #generate_tag — Net::IMAP
- #get — Net::FTP
- #get — Net::HTTP
- #get2 — Net::HTTP
- #get_fields — Net::HTTPHeader
- #get_response — Net::IMAP
- #get_response — Net::SMTP
- #get_tagged_response — Net::IMAP
- #getacl — Net::IMAP
- #getbinaryfile — Net::FTP
- #getdir — Net::FTP
- #getok — Net::SMTP
- #getquota — Net::IMAP
- #getquotaroot — Net::IMAP
- #gettextfile — Net::FTP
- #head — Net::HTTP
- #head2 — Net::HTTP
- #header — Net::POPMail
- #helo — Net::SMTP
- #help — Net::FTP
- #hmac_md5 — Net::IMAP::CramMD5Authenticator
- #idle — Net::IMAP
- #idle_done — Net::IMAP
- #initialize_http_header — Net::HTTPHeader
- #inspect — Net::HTTP
- #inspect — Net::HTTPGenericRequest
- #inspect — Net::HTTPResponse
- #inspect — Net::POP3
- #inspect — Net::POPMail
- #inspect — Net::WriteAdapter
- #inspect — Net::SMTP
- #ipaddr — Net::HTTP
- #ipaddr= — Net::HTTP
- #keep_alive? — Net::HTTP
- #key? — Net::HTTPHeader
- #list — Net::FTP
- #list — Net::IMAP
- #listable? — Net::FTP::MLSxEntry
- #lock — Net::HTTP
- #logging — Net::POP3
- #logging — Net::SMTP
- #login — Net::FTP
- #login — Net::IMAP
- #logout — Net::IMAP
- #ls — Net::FTP
- #lsub — Net::IMAP
- #mail — Net::POPMail
- #mailfrom — Net::SMTP
- #mails — Net::POP3
- #main_type — Net::HTTPHeader
- #max_retries= — Net::HTTP
- #mdtm — Net::FTP
- #media_subtype — Net::IMAP::BodyTypeBasic
- #media_subtype — Net::IMAP::BodyTypeText
- #media_subtype — Net::IMAP::BodyTypeMessage
- #media_subtype — Net::IMAP::BodyTypeMultipart
- #message — Net::ReadTimeout
- #message — Net::WriteTimeout
- #message — Net::SMTP::Response
- #mkcol — Net::HTTP
- #mkdir — Net::FTP
- #mlsd — Net::FTP
- #mlst — Net::FTP
- #move — Net::HTTP
- #move — Net::IMAP
- #mtime — Net::FTP
- #multipart? — Net::IMAP::BodyTypeBasic
- #multipart? — Net::IMAP::BodyTypeText
- #multipart? — Net::IMAP::BodyTypeMessage
- #multipart? — Net::IMAP::BodyTypeAttachment
- #multipart? — Net::IMAP::BodyTypeMultipart
- #multipart? — Net::IMAP::BodyTypeExtension
- #n_bytes — Net::POP3
- #n_mails — Net::POP3
- #nc — Net::IMAP::DigestMD5Authenticator
- #new_internet_message_io — Net::SMTP
- #nlst — Net::FTP
- #noop — Net::FTP
- #noop — Net::IMAP
- #normalize_searching_criteria — Net::IMAP
- #on_connect — Net::HTTP
- #open_message_stream — Net::SMTP
- #option — Net::FTP
- #options — Net::HTTP
- #parse_mlsx_entry — Net::FTP
- #parse_pasv_ipv4_host — Net::FTP
- #parse_pasv_ipv6_host — Net::FTP
- #parse_pasv_port — Net::FTP
- #patch — Net::HTTP
- #peer_cert — Net::HTTP
- #pop — Net::POPMail
- #port — Net::POP3
- #post — Net::HTTP
- #post2 — Net::HTTP
- #print — Net::WriteAdapter
- #printf — Net::WriteAdapter
- #procdest — Net::HTTPResponse
- #process — Net::IMAP::LoginAuthenticator
- #process — Net::IMAP::PlainAuthenticator
- #process — Net::IMAP::CramMD5Authenticator
- #process — Net::IMAP::DigestMD5Authenticator
- #propfind — Net::HTTP
- #proppatch — Net::HTTP
- #proxy? — Net::HTTP
- #proxy_address — Net::HTTP
- #proxy_basic_auth — Net::HTTPHeader
- #proxy_from_env? — Net::HTTP
- #proxy_pass — Net::HTTP
- #proxy_port — Net::HTTP
- #proxy_user — Net::HTTP
- #proxyaddr — Net::HTTP
- #proxyport — Net::HTTP
- #purgeable? — Net::FTP::MLSxEntry
- #put — Net::FTP
- #put_string — Net::IMAP
- #putbinaryfile — Net::FTP
- #puts — Net::WriteAdapter
- #puttextfile — Net::FTP
- #pwd — Net::FTP
- #qdval — Net::IMAP::DigestMD5Authenticator
- #quit — Net::FTP
- #quit — Net::SMTP
- #quote_string — Net::HTTPGenericRequest
- #range — Net::HTTPHeader
- #range= — Net::HTTPHeader
- #range_length — Net::HTTPHeader
- #rcptto — Net::SMTP
- #rcptto_list — Net::SMTP
- #read_body — Net::HTTPResponse
- #read_body_0 — Net::HTTPResponse
- #read_timeout= — Net::FTP
- #read_timeout= — Net::HTTP
- #read_timeout= — Net::POP3
- #read_timeout= — Net::SMTP
- #readable? — Net::FTP::MLSxEntry
- #ready — Net::SMTP
- #receive_responses — Net::IMAP
- #record_response — Net::IMAP
- #recv_response — Net::SMTP
- #remove_response_handler — Net::IMAP
- #renamable? — Net::FTP::MLSxEntry
- #rename — Net::FTP
- #rename — Net::IMAP
- #request — Net::HTTP
- #request_body_permitted? — Net::HTTPGenericRequest
- #request_get — Net::HTTP
- #request_head — Net::HTTP
- #request_post — Net::HTTP
- #reset — Net::POP3
- #response_body_permitted? — Net::HTTPGenericRequest
- #retrbinary — Net::FTP
- #retrlines — Net::FTP
- #rmdir — Net::FTP
- #rset — Net::SMTP
- #search — Net::IMAP
- #search_internal — Net::IMAP
- #select — Net::IMAP
- #send_command — Net::IMAP
- #send_data — Net::IMAP
- #send_entity — Net::HTTP
- #send_list_data — Net::IMAP
- #send_literal — Net::IMAP
- #send_mail — Net::SMTP
- #send_message — Net::SMTP
- #send_number_data — Net::IMAP
- #send_quoted_string — Net::IMAP
- #send_request — Net::HTTP
- #send_request_with_body — Net::HTTPGenericRequest
- #send_request_with_body_data — Net::HTTPGenericRequest
- #send_request_with_body_stream — Net::HTTPGenericRequest
- #send_string_data — Net::IMAP
- #send_symbol_data — Net::IMAP
- #send_time_data — Net::IMAP
- #sendcmd — Net::FTP
- #sendmail — Net::SMTP
- #set_content_type — Net::HTTPHeader
- #set_debug_output — Net::HTTP
- #set_debug_output — Net::POP3
- #set_debug_output — Net::SMTP
- #set_field — Net::HTTPHeader
- #set_form — Net::HTTPHeader
- #set_form_data — Net::HTTPHeader
- #set_range — Net::HTTPHeader
- #set_socket — Net::FTP
- #setacl — Net::IMAP
- #setquota — Net::IMAP
- #site — Net::FTP
- #size — Net::FTP
- #sort — Net::IMAP
- #sort_internal — Net::IMAP
- #ssl? — Net::SMTP
- #ssl_socket — Net::SMTP
- #sspi_auth — Net::HTTP
- #sspi_auth? — Net::HTTP
- #start — Net::HTTP
- #start — Net::POP3
- #start — Net::SMTP
- #start_tls_session — Net::FTP
- #start_tls_session — Net::IMAP
- #started? — Net::HTTP
- #started? — Net::POP3
- #started? — Net::SMTP
- #starttls — Net::IMAP
- #starttls — Net::SMTP
- #starttls? — Net::SMTP
- #starttls_always? — Net::SMTP
- #starttls_auto? — Net::SMTP
- #status — Net::FTP
- #status — Net::IMAP
- #status_type_char — Net::SMTP::Response
- #storbinary — Net::FTP
- #store — Net::IMAP
- #store_internal — Net::IMAP
- #storlines — Net::FTP
- #stream_check — Net::HTTPResponse
- #sub_type — Net::HTTPHeader
- #subscribe — Net::IMAP
- #success? — Net::SMTP::Response
- #supply_default_content_type — Net::HTTPGenericRequest
- #system — Net::FTP
- #tcp_socket — Net::IMAP
- #tcp_socket — Net::SMTP
- #thread — Net::IMAP
- #thread_internal — Net::IMAP
- #tls? — Net::SMTP
- #tlsconnect — Net::SMTP
- #to_hash — Net::HTTPHeader
- #top — Net::POPMail
- #trace — Net::HTTP
- #transport_request — Net::HTTP
- #type_params — Net::HTTPHeader
- #uid_copy — Net::IMAP
- #uid_fetch — Net::IMAP
- #uid_move — Net::IMAP
- #uid_search — Net::IMAP
- #uid_sort — Net::IMAP
- #uid_store — Net::IMAP
- #uid_thread — Net::IMAP
- #uidl — Net::POPMail
- #unique_id — Net::POPMail
- #unlock — Net::HTTP
- #unsubscribe — Net::IMAP
- #use_ssl= — Net::HTTP
- #use_ssl? — Net::HTTP
- #use_ssl? — Net::POP3
- #validate_data — Net::IMAP
- #validate_line — Net::SMTP
- #value — Net::HTTPResponse
- #voidcmd — Net::FTP
- #wait_for_continue — Net::HTTPGenericRequest
- #writable? — Net::FTP::MLSxEntry
- #write — Net::WriteAdapter
- #write_header — Net::HTTPGenericRequest
- #write_timeout= — Net::HTTP
- #xlist — Net::IMAP