{"id":13395003,"url":"https://github.com/excon/excon","last_synced_at":"2025-05-14T22:03:57.367Z","repository":{"id":703216,"uuid":"349203","full_name":"excon/excon","owner":"excon","description":"Usable, fast, simple HTTP 1.1 for Ruby","archived":false,"fork":false,"pushed_at":"2025-03-18T14:57:37.000Z","size":3409,"stargazers_count":1162,"open_issues_count":19,"forks_count":286,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-04-30T07:47:35.193Z","etag":null,"topics":["excon","http","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/excon.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.txt","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"geemus","tidelift":"rubygems/excon"}},"created_at":"2009-10-25T17:50:46.000Z","updated_at":"2025-04-29T19:18:15.000Z","dependencies_parsed_at":"2023-12-15T16:26:04.428Z","dependency_job_id":"c699fa40-267c-4d47-a69f-4a8032f9ba0d","html_url":"https://github.com/excon/excon","commit_stats":{"total_commits":1652,"total_committers":198,"mean_commits":8.343434343434344,"dds":"0.43159806295399517","last_synced_commit":"63bbd3ecc2ff5a598de18e9c5a9cb69cb3d2581a"},"previous_names":["geemus/excon"],"tags_count":252,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/excon%2Fexcon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/excon%2Fexcon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/excon%2Fexcon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/excon%2Fexcon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/excon","download_url":"https://codeload.github.com/excon/excon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251843661,"owners_count":21652855,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["excon","http","ruby"],"created_at":"2024-07-30T17:01:38.855Z","updated_at":"2025-05-07T08:26:34.652Z","avatar_url":"https://github.com/excon.png","language":"Ruby","readme":"# excon\n\nUsable, fast, simple Ruby HTTP 1.1\n\nExcon was designed to be simple, fast and performant. It works great as a general HTTP(s) client and is particularly well suited to usage in API clients.\n\n[![Build Status](https://github.com/excon/excon/actions/workflows/ci.yml/badge.svg)](https://github.com/excon/excon/actions/workflows/ci.yml)\n[![Gem Version](https://badge.fury.io/rb/excon.svg)](https://rubygems.org/gems/excon)\n\n- [Getting Started](#getting-started)\n- [Options](#options)\n- [Chunked Requests](#chunked-requests)\n- [Pipelining Requests](#pipelining-requests)\n- [Streaming Responses](#streaming-responses)\n- [Proxy Support](#proxy-support)\n- [Reusable ports](#reusable-ports)\n- [Unix Socket Support](#unix-socket-support)\n- [Stubs](#stubs)\n- [Instrumentation](#instrumentation)\n- [HTTPS client certificate](#https-client-certificate)\n- [HTTPS/SSL Issues](#httpsssl-issues)\n- [Getting Help](#getting-help)\n- [Contributing](#contributing)\n- [Plugins and Middlewares](#plugins-and-middlewares)\n- [License](#license)\n\n## Getting Started\n\nInstall the gem.\n\n```\n$ sudo gem install excon\n```\n\nRequire with rubygems.\n\n```ruby\nrequire 'rubygems'\nrequire 'excon'\n```\n\nThe easiest way to get started is by using one-off requests. Supported one-off request methods are `connect`, `delete`, `get`, `head`, `options`, `post`, `put`, and `trace`. Requests return a response object which has `body`, `headers`, `remote_ip` and `status` attributes.\n\n```ruby\nresponse = Excon.get('http://geemus.com')\nresponse.body       # =\u003e \"...\"\nresponse.headers    # =\u003e {...}\nresponse.remote_ip  # =\u003e \"...\"\nresponse.status     # =\u003e 200\n```\n\nFor API clients or other ongoing usage, reuse a connection across multiple requests to share options and improve performance.\n\n```ruby\nconnection = Excon.new('http://geemus.com')\nget_response = connection.get\npost_response = connection.post(:path =\u003e '/foo')\ndelete_response = connection.delete(:path =\u003e '/bar')\n```\n\nBy default, each connection is non-persistent. This means that each request made against a connection behaves like a\none-off request. Each request will establish a socket connection to the server, then close the socket once the request\nis complete.\n\nTo use a persistent connection, use the `:persistent` option:\n\n```ruby\nconnection = Excon.new('http://geemus.com', :persistent =\u003e true)\n```\n\nThe initial request will establish a socket connection to the server and leave the socket open. Subsequent requests\nwill reuse that socket. You may call `Connection#reset` at any time to close the underlying socket, and the next request\nwill establish a new socket connection.\n\nYou may also control persistence on a per-request basis by setting the `:persistent` option for each request.\n\n```ruby\nconnection = Excon.new('http://geemus.com') # non-persistent by default\nconnection.get # socket established, then closed\nconnection.get(:persistent =\u003e true) # socket established, left open\nconnection.get(:persistent =\u003e true) # socket reused\nconnection.get # socket reused, then closed\n\nconnection = Excon.new('http://geemus.com', :persistent =\u003e true)\nconnection.get # socket established, left open\nconnection.get(:persistent =\u003e false) # socket reused, then closed\nconnection.get(:persistent =\u003e false) # socket established, then closed\nconnection.get # socket established, left open\nconnection.get # socket reused\n```\n\nNote that sending a request with `:persistent =\u003e false` to close the socket will also send `Connection: close` to inform\nthe server the connection is no longer needed. `Connection#reset` will simply close our end of the socket.\n\n## Options\n\nBoth one-off and persistent connections support many other options. The final options for a request are built up by starting with `Excon.defaults`, then merging in options from the connection and finally merging in any request options. In this way you have plenty of options on where and how to set options and can easily setup connections or defaults to match common options for a particular endpoint.\n\nHere are a few common examples:\n\n```ruby\n# Output debug info, similar to ENV['EXCON_DEBUG']\nconnection = Excon.new('http://geemus.com/', :debug =\u003e true)\n\n# Custom headers\nExcon.get('http://geemus.com', :headers =\u003e {'Authorization' =\u003e 'Basic 0123456789ABCDEF'})\nconnection.get(:headers =\u003e {'Authorization' =\u003e 'Basic 0123456789ABCDEF'})\n\n# Changing query strings\nconnection = Excon.new('http://geemus.com/')\nconnection.get(:query =\u003e {:foo =\u003e 'bar'})\n\n# POST body encoded with application/x-www-form-urlencoded\nExcon.post('http://geemus.com',\n  :body =\u003e 'language=ruby\u0026class=fog',\n  :headers =\u003e { \"Content-Type\" =\u003e \"application/x-www-form-urlencoded\" })\n\n# same again, but using URI to build the body of parameters\nExcon.post('http://geemus.com',\n  :body =\u003e URI.encode_www_form(:language =\u003e 'ruby', :class =\u003e 'fog'),\n  :headers =\u003e { \"Content-Type\" =\u003e \"application/x-www-form-urlencoded\" })\n\n# request takes a method option, accepting either a symbol or string\nconnection.request(:method =\u003e :get)\nconnection.request(:method =\u003e 'GET')\n\n# expect one or more status codes, or raise an error\nconnection.request(:expects =\u003e [200, 201], :method =\u003e :get)\n\n# use basic authentication by supplying credentials in the URL or as parameters\nconnection = Excon.new('http://username:password@secure.geemus.com')\n# Note: username \u0026 password is unescaped for request, so you should provide escaped values here\n# i. e. instead of `password: 'pa%%word'` you should use `password: Excon::Utils.escape_uri('pa%%word')`,\n# which return `pa%25%25word`\nconnection = Excon.new('http://secure.geemus.com',\n  :user =\u003e 'username', :password =\u003e 'password')\n\n# use custom uri parser\nrequire 'addressable/uri'\nconnection = Excon.new('http://geemus.com/', uri_parser: Addressable::URI)\n```\n\nCompared to web browsers and other http client libraries, e.g. curl, Excon is a bit more low-level and doesn't assume much by default. If you are seeing different results compared to other clients, the following options might help:\n\n```ruby\n# opt-in to omitting port from http:80 and https:443\nconnection = Excon.new('http://geemus.com/', :omit_default_port =\u003e true)\n\n# accept gzip encoding\nconnection = Excon.new('http://geemus.com/', :headers =\u003e { \"Accept-Encoding\" =\u003e \"gzip\" })\n\n# turn off peer verification (less secure)\nExcon.defaults[:ssl_verify_peer] = false\nconnection = Excon.new('https://...')\n```\n\n## Timeouts and Retries\n\nYou can modify timeouts and define whether and how many (blocking) retries Excon should attempt if errors occur.\n\n```ruby\n# this request can be repeated safely, so retry on errors up to 4 times\nconnection.request(:idempotent =\u003e true)\n\n# this request can be repeated safely, retry up to 6 times\nconnection.request(:idempotent =\u003e true, :retry_limit =\u003e 6)\n\n# this request can be repeated safely, retry up to 6 times and sleep 5 seconds\n# in between each retry\nconnection.request(:idempotent =\u003e true, :retry_limit =\u003e 6, :retry_interval =\u003e 5)\n\n# specify the errors on which to retry (default Timeout, Socket, HTTPStatus)\n# only retry on timeouts\nconnection.request(:idempotent =\u003e true, :retry_limit =\u003e 6, :retry_interval =\u003e 5, :retry_errors =\u003e [Excon::Error::Timeout] )\n\n# set longer read_timeout (default is 60 seconds)\nconnection.request(:read_timeout =\u003e 360)\n\n# set longer write_timeout (default is 60 seconds)\nconnection.request(:write_timeout =\u003e 360)\n\n# set a request timeout in seconds (default is no timeout).\n# the timeout may be an integer or a float to support sub-second granularity (e.g., 1, 60, 0.005 and 3.5).\nconnection.request(:timeout =\u003e 0.1) # timeout if the entire request takes longer than 100 milliseconds\n\n# Enable the socket option TCP_NODELAY on the underlying socket.\n#\n# This can improve response time when sending frequent short\n# requests in time-sensitive scenarios.\n#\nconnection = Excon.new('http://geemus.com/', :tcp_nodelay =\u003e true)\n\n# opt-in to having Excon add a default port (http:80 and https:443)\nconnection = Excon.new('http://geemus.com/', :include_default_port =\u003e true)\n\n# set longer connect_timeout (default is 60 seconds)\nconnection = Excon.new('http://geemus.com/', :connect_timeout =\u003e 360)\n\n# opt-out of nonblocking operations for performance and/or as a workaround\nconnection = Excon.new('http://geemus.com/', :nonblock =\u003e false)\n\n# DEPRECATED in favour of `resolv_resolver` (see below)\n# set up desired dns_timeouts for resolving addresses (default is set by Resolv)\n# it accepts an integer or an array of integers for retrying with different timeouts\n# see Resolv::DNS#timeouts for more details (https://ruby-doc.org/3.2.2/stdlibs/resolv/Resolv/DNS.html#method-i-timeouts-3D)\nconnection = Excon.new('http://geemus.com/', :dns_timeouts =\u003e 3)\n\n# set a custom resolver for Resolv\n# you can use custom nameservers and timeouts\n# `timeouts` accepts an integer or an array of integers for retrying with different timeouts\n# see Resolv::DNS#timeouts for more details (https://ruby-doc.org/3.2.2/stdlibs/resolv/Resolv/DNS.html#method-i-timeouts-3D)\ndns_resolver = Resolv::DNS.new(nameserver: ['127.0.0.1'])\ndns_resolver.timeouts = 3\nresolver = Resolv.new([Resolv::Hosts.new, dns_resolver])\nconnection = Excon.new('http://geemus.com', :resolv_resolver =\u003e resolver)\n```\n\n## Chunked Requests\n\nYou can make `Transfer-Encoding: chunked` requests by passing a block that will deliver chunks, delivering an empty chunk to signal completion.\n\n```ruby\nfile = File.open('data')\n\nchunker = lambda do\n  # Excon.defaults[:chunk_size] defaults to 1048576, ie 1MB\n  # to_s will convert the nil received after everything is read to the final empty chunk\n  file.read(Excon.defaults[:chunk_size]).to_s\nend\n\nExcon.post('http://geemus.com', :request_block =\u003e chunker)\n\nfile.close\n```\n\nIterating in this way allows you to have more granular control over writes and to write things where you can not calculate the overall length up front.\n\n## Pipelining Requests\n\nYou can make use of HTTP pipelining to improve performance. Instead of the normal request/response cycle, pipelining sends a series of requests and then receives a series of responses. You can take advantage of this using the `requests` method, which takes an array of params where each is a hash like request would receive and returns an array of responses.\n\n```ruby\nconnection = Excon.new('http://geemus.com/')\nconnection.requests([{:method =\u003e :get}, {:method =\u003e :get}])\n```\n\nBy default, each call to `requests` will use a separate persistent socket connection. To make multiple `requests` calls\nusing a single persistent connection, set `:persistent =\u003e true` when establishing the connection.\n\nFor large numbers of simultaneous requests please consider using the `batch_requests` method. This will automatically slice up the requests into batches based on the file descriptor limit of your operating system. The results are the same as the `requests` method, but using this method can help prevent timeout errors.\n\n```ruby\nlarge_array_of_requests = [{:method =\u003e :get, :path =\u003e 'some_path'}, { ... }] # Hundreds of items\nconnection.batch_requests(large_array_of_requests)\n```\n\n## Streaming Responses\n\nYou can stream responses by passing a block that will receive each chunk.\n\n```ruby\nstreamer = lambda do |chunk, remaining_bytes, total_bytes|\n  puts chunk\n  puts \"Remaining: #{remaining_bytes.to_f / total_bytes}%\"\nend\n\nExcon.get('http://geemus.com', :response_block =\u003e streamer)\n```\n\nIterating over each chunk will allow you to do work on the response incrementally without buffering the entire response first. For very large responses this can lead to significant memory savings.\n\n## Proxy Support\n\nYou can specify a proxy URL that Excon will use with both HTTP and HTTPS connections:\n\n```ruby\nconnection = Excon.new('http://geemus.com', :proxy =\u003e 'http://my.proxy:3128')\nconnection.request(:method =\u003e 'GET')\n\nExcon.get('http://geemus.com', :proxy =\u003e 'http://my.proxy:3128')\n```\n\nThe proxy URL must be fully specified, including scheme (e.g. \"http://\") and port.\n\nProxy support must be set when establishing a connection object and cannot be overridden in individual requests.\n\nNOTE: Excon will use `HTTP_PROXY` and `HTTPS_PROXY` environment variables. If set they will take precedence over any :proxy option specified in code. If \"HTTPS_PROXY\" is not set, \"HTTP_PROXY\" will be used for both HTTP and HTTPS connections. To disable this behavior, set the `NO_PROXY` environment variable and other environment variable proxy settings will be disregarded.\n\n## Reusable ports\n\nFor advanced cases where you'd like to reuse the local port assigned to the excon socket in another socket, use the `:reuseaddr` option.\n\n```ruby\nconnection = Excon.new('http://geemus.com', :reuseaddr =\u003e true)\nconnection.get\n\ns = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0)\ns.setsockopt(Socket::SOL_SOCKET, Socket::SO_REUSEADDR, true)\nif defined?(Socket::SO_REUSEPORT)\n  s.setsockopt(Socket::SOL_SOCKET, Socket::SO_REUSEPORT, true)\nend\n\ns.bind(Socket.pack_sockaddr_in(connection.local_port, connection.local_address))\ns.connect(Socket.pack_sockaddr_in(80, '1.2.3.4'))\nputs s.read\ns.close\n```\n\n## Unix Socket Support\n\nThe Unix socket will work for one-off requests and multiuse connections. A Unix socket path must be provided separate from the resource path.\n\n```ruby\nconnection = Excon.new('unix:///', :socket =\u003e '/tmp/unicorn.sock')\nconnection.request(:method =\u003e :get, :path =\u003e '/ping')\n\nExcon.get('unix:///ping', :socket =\u003e '/tmp/unicorn.sock')\n```\n\nNOTE: Proxies will be ignored when using a Unix socket, since a Unix socket has to be local.\n\n## Stubs\n\nYou can stub out requests for testing purposes by enabling mock mode on a connection.\n\n```ruby\nconnection = Excon.new('http://example.com', :mock =\u003e true)\n```\n\nOr by enabling mock mode for a request.\n\n```ruby\nconnection.request(:method =\u003e :get, :path =\u003e 'example', :mock =\u003e true)\n```\n\nAdd stubs by providing the request attributes to match and response attributes to return. Response params can be specified as either a hash or block which will yield with the request params.\n\n```ruby\nExcon.stub({}, {:body =\u003e 'body', :status =\u003e 200})\nExcon.stub({}, lambda {|request_params| {:body =\u003e request_params[:body], :status =\u003e 200}})\n```\n\nOmitted attributes are assumed to match, so this stub will match _any_ request and return an Excon::Response with a body of 'body' and status of 200.\n\n```ruby\nExcon.stub({ :scheme =\u003e 'https', :host =\u003e 'example.com', :path =\u003e /\\/examples\\/\\d+/, :port =\u003e 443 }, { body: 'body', status: 200 })\n```\n\nThe above code will stub this:\n\n```ruby\nExcon.get('https://example.com/examples/123', mock: true)\n```\n\nYou can add whatever stubs you might like this way and they will be checked against in the order they were added, if none of them match then excon will raise an `Excon::Errors::StubNotFound` error to let you know.\n\nIf you want to allow unstubbed requests without raising `StubNotFound`, set the `allow_unstubbed_requests` option either globally or per request.\n\n```ruby\nconnection = Excon.new('http://example.com', :mock =\u003e true, :allow_unstubbed_requests =\u003e true)\n```\n\nTo remove a previously defined stub, or all stubs:\n\n```ruby\nExcon.unstub({})  # remove first/oldest stub matching {}\nExcon.stubs.clear # remove all stubs\n```\n\nFor example, if using RSpec for your test suite you can clear stubs after running each example:\n\n```ruby\nconfig.after(:each) do\n  Excon.stubs.clear\nend\n```\n\nYou can also modify `Excon.defaults` to set a stub for all requests, so for a test suite you might do this:\n\n```ruby\n# Mock by default and stub any request as success\nconfig.before(:all) do\n  Excon.defaults[:mock] = true\n  Excon.stub({}, {:body =\u003e 'Fallback', :status =\u003e 200})\n  # Add your own stubs here or in specific tests...\nend\n```\n\nBy default stubs are shared globally, to make stubs unique to each thread, use `Excon.defaults[:stubs] = :local`.\n\n## Instrumentation\n\nExcon calls can be timed using the [ActiveSupport::Notifications](http://api.rubyonrails.org/classes/ActiveSupport/Notifications.html) API.\n\n```ruby\nconnection = Excon.new(\n  'http://geemus.com',\n  :instrumentor =\u003e ActiveSupport::Notifications\n)\n```\n\nExcon will then instrument each request, retry, and error. The corresponding events are named `excon.request`, `excon.retry`, and `excon.error` respectively.\n\n```ruby\nActiveSupport::Notifications.subscribe(/excon/) do |*args|\n  puts \"Excon did stuff!\"\nend\n```\n\nIf you prefer to label each event with a namespace other than \"excon\", you may specify\nan alternate name in the constructor:\n\n```ruby\nconnection = Excon.new(\n  'http://geemus.com',\n  :instrumentor =\u003e ActiveSupport::Notifications,\n  :instrumentor_name =\u003e 'my_app'\n)\n```\n\nNote: Excon's ActiveSupport::Notifications implementation has the following event format: `\u003cnamespace\u003e.\u003cevent\u003e` which is the opposite of the Rails' implementation.\n\nActiveSupport provides a [subscriber](http://api.rubyonrails.org/classes/ActiveSupport/Subscriber.html) interface which lets you attach a subscriber to a namespace. Due to the incompability above, you won't be able to attach a subscriber to the \"excon\" namespace out of the box.\n\nIf you want this functionality, you can use a simple adapter such as this one:\n\n```ruby\nclass ExconToRailsInstrumentor\n  def self.instrument(name, datum, \u0026block)\n    namespace, *event = name.split(\".\")\n    rails_name = [event, namespace].flatten.join(\".\")\n    ActiveSupport::Notifications.instrument(rails_name, datum, \u0026block)\n  end\nend\n```\n\nIf you don't want to add ActiveSupport to your application, simply define a class which implements the same `#instrument` method like so:\n\n```ruby\nclass SimpleInstrumentor\n  class \u003c\u003c self\n    attr_accessor :events\n\n    def instrument(name, params = {}, \u0026block)\n      puts \"#{name} just happened.\"\n      yield if block_given?\n    end\n  end\nend\n```\n\nThe #instrument method will be called for each HTTP request, response, retry, and error.\n\nFor debugging purposes you can also use `Excon::StandardInstrumentor` to output all events to stderr. This can also be specified by setting the `EXCON_DEBUG` ENV var.\n\nSee [the documentation for ActiveSupport::Notifications](http://api.rubyonrails.org/classes/ActiveSupport/Notifications.html) for more detail on using the subscription interface. See excon's [instrumentation_test.rb](https://github.com/excon/excon/blob/master/tests/middlewares/instrumentation_tests.rb) for more examples of instrumenting excon.\n\n## HTTPS client certificate\n\nYou can supply a client side certificate if the server requires it for authentication:\n\n```ruby\nconnection = Excon.new('https://example.com',\n                       client_cert: 'mycert.pem',\n                       client_key: 'mycert.key',\n                       client_key_pass: 'my pass phrase')\n```\n\n`client_key_pass` is optional.\n\nOptionally, you can also pass the whole chain by passing the extra certificates through `client_chain`:\n\n```ruby\nconnection = Excon.new('https://example.com',\n                       client_cert: 'mycert.pem',\n                       client_chain: 'mychain.pem',\n                       client_key: 'mycert.key')\n```\n\nIf you already have loaded the certificate, key and chain into memory, then pass it through like:\n\n```ruby\nclient_cert_data = File.load 'mycert.pem'\nclient_key_data = File.load 'mycert.key'\n\nconnection = Excon.new('https://example.com',\n                       client_cert_data: client_cert_data,\n                       client_chain_data: client_chain_data,\n                       client_key_data: client_key_data)\n```\n\nThis can be useful if your program has already loaded the assets through\nanother mechanism (E.g. a remote API call to a secure K:V system like Vault).\n\n## HTTPS/SSL Issues\n\nBy default excon will try to verify peer certificates when using HTTPS. Unfortunately on some operating systems the defaults will not work. This will likely manifest itself as something like `Excon::Errors::CertificateError: SSL_connect returned=1 ...`\n\nIf you have the misfortune of running into this problem you have a couple options. If you have certificates but they aren't being auto-discovered, you can specify the path to your certificates:\n\n```ruby\nExcon.defaults[:ssl_ca_path] = '/path/to/certs'\n```\n\nFailing that, you can turn off peer verification (less secure):\n\n```ruby\nExcon.defaults[:ssl_verify_peer] = false\n```\n\nEither of these should allow you to work around the socket error and continue with your work.\n\n## Getting Help\n\n- We support and test-against non-EOL Ruby versions. If you need older version support, please reach out.\n- Ask specific questions on [Stack Overflow](http://stackoverflow.com/questions/tagged/excon).\n- Report bugs and discuss potential features in [Github issues](https://github.com/excon/excon/issues).\n\n## Contributing\n\nPlease refer to [CONTRIBUTING.md](https://github.com/excon/excon/blob/master/CONTRIBUTING.md).\n\n# Plugins and Middlewares\n\nUsing Excon's [Middleware system][middleware], you can easily extend Excon's\nfunctionality with your own. The following plugins extend Excon in their own\nway:\n\n- [excon-addressable](https://github.com/JeanMertz/excon-addressable)\n\n  Set [addressable](https://github.com/sporkmonger/addressable) as the default\n  URI parser, and add support for [URI templating][templating].\n\n- [excon-hypermedia](https://github.com/JeanMertz/excon-hypermedia)\n\n  Teaches Excon to talk with [HyperMedia APIs][hypermedia]. Allowing you to use\n  all of Excon's functionality, while traversing APIs in an easy and\n  self-discovering way.\n\n## License\n\nPlease refer to [LICENSE.md](https://github.com/excon/excon/blob/master/LICENSE.md).\n\n[middleware]: lib/excon/middlewares/base.rb\n[hypermedia]: https://en.wikipedia.org/wiki/HATEOAS\n[templating]: https://www.rfc-editor.org/rfc/rfc6570.txt\n","funding_links":["https://github.com/sponsors/geemus","https://tidelift.com/funding/github/rubygems/excon"],"categories":["HTTP Clients and tools","Clients","Ruby","Http","HTTP"],"sub_categories":["Ruby Clients"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexcon%2Fexcon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexcon%2Fexcon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexcon%2Fexcon/lists"}