2018-10-24 18:23:23 +01:00

409 B

0.2.1

  • fixed setting timeouts using the chainable API

  • Basic Auth: proper user/password escaping

  • Improved multi-request support, by allowing to pass request-specific options for multiple requests

tokens = ["TOKEN1", "TOKEN2", "TOKEN3"]
uri = "https://example.com/protected"

requests = tokens.map { |token| [uri, {headers: {'authorization': token} }] }

responses = HTTPX.get(*requests)