Module: Gem::Net

Defined in:
lib/rubygems/vendor/net-http/lib/net/http.rb,
lib/rubygems/vendor/net-protocol/lib/net/protocol.rb,
lib/rubygems/vendor/net-http/lib/net/http/responses.rb,
lib/rubygems/vendor/net-http/lib/net/http/exceptions.rb

Overview

Defined Under Namespace

Modules: HTTPExceptions, HTTPHeader, NetPrivate Classes: BufferedIO, HTTP, HTTPAccepted, HTTPAlreadyReported, HTTPBadGateway, HTTPBadRequest, HTTPBadResponse, HTTPClientError, HTTPClientException, HTTPConflict, HTTPContinue, HTTPCreated, HTTPEarlyHints, HTTPError, HTTPExpectationFailed, HTTPFailedDependency, HTTPFatalError, HTTPForbidden, HTTPFound, HTTPGatewayTimeout, HTTPGenericRequest, HTTPGone, HTTPHeaderSyntaxError, HTTPIMUsed, HTTPInformation, HTTPInsufficientStorage, HTTPInternalServerError, HTTPLengthRequired, HTTPLocked, HTTPLoopDetected, HTTPMethodNotAllowed, HTTPMisdirectedRequest, HTTPMovedPermanently, HTTPMultiStatus, HTTPMultipleChoices, HTTPNetworkAuthenticationRequired, HTTPNoContent, HTTPNonAuthoritativeInformation, HTTPNotAcceptable, HTTPNotExtended, HTTPNotFound, HTTPNotImplemented, HTTPNotModified, HTTPOK, HTTPPartialContent, HTTPPayloadTooLarge, HTTPPaymentRequired, HTTPPermanentRedirect, HTTPPreconditionFailed, HTTPPreconditionRequired, HTTPProcessing, HTTPProxyAuthenticationRequired, HTTPRangeNotSatisfiable, HTTPRedirection, HTTPRequest, HTTPRequestHeaderFieldsTooLarge, HTTPRequestTimeout, HTTPResetContent, HTTPResponse, HTTPRetriableError, HTTPSeeOther, HTTPServerError, HTTPServiceUnavailable, HTTPSuccess, HTTPSwitchProtocol, HTTPTemporaryRedirect, HTTPTooManyRequests, HTTPURITooLong, HTTPUnauthorized, HTTPUnavailableForLegalReasons, HTTPUnknownResponse, HTTPUnprocessableEntity, HTTPUnsupportedMediaType, HTTPUpgradeRequired, HTTPUseProxy, HTTPVariantAlsoNegotiates, HTTPVersionNotSupported, InternetMessageIO, OpenTimeout, ProtoAuthError, ProtoCommandError, ProtoFatalError, ProtoRetriableError, ProtoServerError, ProtoSyntaxError, ProtoUnknownError, Protocol, ProtocolError, ReadAdapter, ReadTimeout, WriteAdapter, WriteTimeout

Constant Summary collapse

HTTPSession =

for backward compatibility until Ruby 3.5 bugs.ruby-lang.org/issues/20900 github.com/bblimke/webmock/pull/1081

HTTP
ProtocRetryError =
ProtoRetriableError
HTTPMultipleChoice =
HTTPMultipleChoices
HTTPMovedTemporarily =
HTTPFound
HTTPRequestTimeOut =
HTTPRequestTimeout
HTTPRequestEntityTooLarge =
HTTPPayloadTooLarge
HTTPRequestURITooLong =
HTTPURITooLong
HTTPRequestURITooLarge =
HTTPRequestURITooLong
HTTPRequestedRangeNotSatisfiable =
HTTPRangeNotSatisfiable
HTTPGatewayTimeOut =
HTTPGatewayTimeout
HTTPServerException =

We cannot use the name “HTTPServerError”, it is the name of the response.

HTTPClientException