Sha256: d15fc8bcd586d68e99b417b7ec5bc2bbd927164317d8396b6a3c87036fdc8603
Contents?: true
Size: 538 Bytes
Versions: 1
Compression:
Stored size: 538 Bytes
Contents
require "hashie" require "faraday" require "faraday/follow_redirects" require "multi_json" require "uri" module RabbitMQ module HTTP class RequestHelper def encode_uri_path_segment(segment) # Correctly escapes spaces, see ruby-amqp/rabbitmq_http_api_client#28. # # Note that slashes also must be escaped since this is a single URI path segment, # not an entire path. Addressable::URI.encode_component(segment, Addressable::URI::CharacterClasses::UNRESERVED) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rabbitmq_http_api_client-3.0.0 | lib/rabbitmq/http/client/request_helper.rb |