Sha256: 79ef39f82bb9867dbafafd7b8ec974045bd2e3fe3c4d8173cc660f69a9f1de36
Contents?: true
Size: 532 Bytes
Versions: 3
Compression:
Stored size: 532 Bytes
Contents
require "hashie" require "faraday" require "faraday_middleware" 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
3 entries across 3 versions & 1 rubygems