module HTTPX

  1. lib/httpx.rb
  2. lib/httpx/altsvc.rb
  3. lib/httpx/buffer.rb
  4. lib/httpx/callbacks.rb
  5. lib/httpx/chainable.rb
  6. lib/httpx/connection.rb
  7. lib/httpx/connection/http1.rb
  8. lib/httpx/connection/http2.rb
  9. lib/httpx/errors.rb
  10. lib/httpx/extensions.rb
  11. lib/httpx/headers.rb
  12. lib/httpx/io.rb
  13. lib/httpx/io/ssl.rb
  14. lib/httpx/io/tcp.rb
  15. lib/httpx/io/udp.rb
  16. lib/httpx/io/unix.rb
  17. lib/httpx/loggable.rb
  18. lib/httpx/options.rb
  19. lib/httpx/parser/http1.rb
  20. lib/httpx/plugins/authentication.rb
  21. lib/httpx/plugins/basic_authentication.rb
  22. lib/httpx/plugins/compression.rb
  23. lib/httpx/plugins/compression/brotli.rb
  24. lib/httpx/plugins/compression/deflate.rb
  25. lib/httpx/plugins/compression/gzip.rb
  26. lib/httpx/plugins/cookies.rb
  27. lib/httpx/plugins/digest_authentication.rb
  28. lib/httpx/plugins/follow_redirects.rb
  29. lib/httpx/plugins/h2c.rb
  30. lib/httpx/plugins/multipart.rb
  31. lib/httpx/plugins/persistent.rb
  32. lib/httpx/plugins/proxy.rb
  33. lib/httpx/plugins/proxy/http.rb
  34. lib/httpx/plugins/proxy/socks4.rb
  35. lib/httpx/plugins/proxy/socks5.rb
  36. lib/httpx/plugins/proxy/ssh.rb
  37. lib/httpx/plugins/push_promise.rb
  38. lib/httpx/plugins/retries.rb
  39. lib/httpx/plugins/stream.rb
  40. lib/httpx/pool.rb
  41. lib/httpx/registry.rb
  42. lib/httpx/request.rb
  43. lib/httpx/resolver.rb
  44. lib/httpx/resolver/https.rb
  45. lib/httpx/resolver/native.rb
  46. lib/httpx/resolver/options.rb
  47. lib/httpx/resolver/resolver_mixin.rb
  48. lib/httpx/resolver/system.rb
  49. lib/httpx/response.rb
  50. lib/httpx/selector.rb
  51. lib/httpx/session.rb
  52. lib/httpx/timeout.rb
  53. lib/httpx/transcoder.rb
  54. lib/httpx/transcoder/body.rb
  55. lib/httpx/transcoder/chunker.rb
  56. lib/httpx/transcoder/form.rb
  57. lib/httpx/transcoder/json.rb
  58. lib/httpx/version.rb
  59. show all

Top-Level Namespace

Methods

Public Class

  1. const_missing

Constants

ConnectTimeoutError = Class.new(TimeoutError)  
Error = Class.new(StandardError)  
HTTPError = Class.new(Error) do attr_reader :response def initialize(response) @response = response super("HTTP Error: #{@response.status}") end def status @response.status end end  
InsecureRedirectError = Class.new(Error)  
MisdirectedRequestError = Class.new(HTTPError)  
NativeResolveError = Class.new(ResolveError) do attr_reader :connection, :host def initialize(connection, host, message = "Can't resolve #{host}") @connection = connection @host = host super(message) end end  
ResolveError = Class.new(Error)  
TimeoutError = Class.new(Error) do attr_reader :timeout def initialize(timeout, message) @timeout = timeout super(message) end def to_connection_error ex = ConnectTimeoutError.new(@timeout, message) ex.set_backtrace(backtrace) ex end end  
TotalTimeoutError = Class.new(TimeoutError)  
UnsupportedSchemeError = Class.new(Error)  
VERSION = "0.6.2"  

Public Class methods

const_missing (const_name)
[show source]
   # File lib/httpx.rb
50 def self.const_missing(const_name)
51   super unless const_name == :Client
52   warn "DEPRECATION WARNING: the class #{self}::Client is deprecated. Use #{self}::Session instead."
53   Session
54 end