Module: HTTPX

Extended by:
Chainable
Defined in:
lib/httpx.rb,
lib/httpx/pool.rb,
lib/httpx/utils.rb,
lib/httpx/altsvc.rb,
lib/httpx/buffer.rb,
lib/httpx/errors.rb,
lib/httpx/io/ssl.rb,
lib/httpx/io/tcp.rb,
lib/httpx/io/udp.rb,
lib/httpx/timers.rb,
lib/httpx/headers.rb,
lib/httpx/io/unix.rb,
lib/httpx/options.rb,
lib/httpx/request.rb,
lib/httpx/session.rb,
lib/httpx/version.rb,
lib/httpx/loggable.rb,
lib/httpx/punycode.rb,
lib/httpx/resolver.rb,
lib/httpx/response.rb,
lib/httpx/session2.rb,
lib/httpx/callbacks.rb,
lib/httpx/chainable.rb,
lib/httpx/connection.rb,
lib/httpx/extensions.rb,
lib/httpx/transcoder.rb,
lib/httpx/domain_name.rb,
lib/httpx/plugins/h2c.rb,
lib/httpx/parser/http1.rb,
lib/httpx/plugins/grpc.rb,
lib/httpx/plugins/oauth.rb,
lib/httpx/plugins/proxy.rb,
lib/httpx/plugins/expect.rb,
lib/httpx/plugins/stream.rb,
lib/httpx/plugins/webdav.rb,
lib/httpx/resolver/https.rb,
lib/httpx/resolver/multi.rb,
lib/httpx/plugins/cookies.rb,
lib/httpx/plugins/retries.rb,
lib/httpx/plugins/upgrade.rb,
lib/httpx/resolver/native.rb,
lib/httpx/resolver/system.rb,
lib/httpx/connection/http1.rb,
lib/httpx/connection/http2.rb,
lib/httpx/plugins/aws_sigv4.rb,
lib/httpx/plugins/grpc/call.rb,
lib/httpx/plugins/multipart.rb,
lib/httpx/plugins/proxy/ssh.rb,
lib/httpx/pmatch_extensions.rb,
lib/httpx/resolver/resolver.rb,
lib/httpx/plugins/persistent.rb,
lib/httpx/plugins/proxy/http.rb,
lib/httpx/plugins/upgrade/h2.rb,
lib/httpx/session_extensions.rb,
lib/httpx/plugins/compression.rb,
lib/httpx/plugins/cookies/jar.rb,
lib/httpx/plugins/grpc/message.rb,
lib/httpx/plugins/proxy/socks4.rb,
lib/httpx/plugins/proxy/socks5.rb,
lib/httpx/plugins/push_promise.rb,
lib/httpx/plugins/rate_limiter.rb,
lib/httpx/plugins/authentication.rb,
lib/httpx/plugins/cookies/cookie.rb,
lib/httpx/plugins/multipart/part.rb,
lib/httpx/plugins/response_cache.rb,
lib/httpx/plugins/circuit_breaker.rb,
lib/httpx/plugins/compression/gzip.rb,
lib/httpx/plugins/follow_redirects.rb,
lib/httpx/plugins/compression/brotli.rb,
lib/httpx/plugins/internal_telemetry.rb,
lib/httpx/plugins/authentication/ntlm.rb,
lib/httpx/plugins/compression/deflate.rb,
lib/httpx/plugins/ntlm_authentication.rb,
lib/httpx/plugins/authentication/basic.rb,
lib/httpx/plugins/basic_authentication.rb,
lib/httpx/plugins/authentication/digest.rb,
lib/httpx/plugins/authentication/socks5.rb,
lib/httpx/plugins/digest_authentication.rb,
lib/httpx/plugins/aws_sdk_authentication.rb,
lib/httpx/plugins/circuit_breaker/circuit.rb,
lib/httpx/plugins/cookies/set_cookie_parser.rb,
lib/httpx/plugins/multipart/mime_type_detector.rb

Overview

Top-Level Namespace

Defined Under Namespace

Modules: AltSvc, ArrayExtensions, Callbacks, Chainable, CurryMethods, ErrorResponsePatternMatchExtensions, HashExtensions, HeadersPatternMatchExtensions, IOExtensions, LiteralStringExtensions, Loggable, NegMethods, NumericExtensions, Parser, Plugins, PosMethods, RegexpExtensions, Resolver, ResponsePatternMatchExtensions, StringExtensions, Transcoder, URIExtensions, Utils Classes: Buffer, ConnectTimeoutError, Connection, ConnectionError, ContentType, DomainName, Error, ErrorResponse, HTTPError, HTTPProxyError, Headers, MisdirectedRequestError, NativeResolveError, Options, Pool, ProxySSL, ReadTimeoutError, Request, RequestTimeoutError, ResolveError, ResolveTimeoutError, Response, SSL, Selector, Session, SettingsTimeoutError, Socks4Error, Socks5Error, StreamResponse, TCP, TimeoutError, Timers, TotalTimeoutError, UDP, UNIX, UnsupportedSchemeError, WriteTimeoutError

Constant Summary collapse

EMPTY =
[].freeze
TLSError =
OpenSSL::SSL::SSLError
IPRegex =
Regexp.union(Resolv::IPv4::Regex, Resolv::IPv6::Regex)
VERSION =
"0.24.0"
GRPCError =
Class.new(Error) do
  attr_reader :status, :details, :metadata

  def initialize(status, details, )
    @status = status
    @details = details
    @metadata = 
    super("GRPC error, code=#{status}, details=#{details}, metadata=#{}")
  end
end
InsecureRedirectError =
Class.new(Error)

Class Method Summary collapse

Methods included from Chainable

accept, headers, plugin, plugins, request, timeout, with, wrap

Class Method Details

.const_missing(const_name) ⇒ Object

:nocov:



57
58
59
60
61
# File 'lib/httpx.rb', line 57

def self.const_missing(const_name)
  super unless const_name == :Client
  warn "DEPRECATION WARNING: the class #{self}::Client is deprecated. Use #{self}::Session instead."
  Session
end