Sha256: b0d41e753cc60f53e8457f5b9eb57ffb64030ced812495eb142be8f1ceee1c7d
Contents?: true
Size: 321 Bytes
Versions: 1
Compression:
Stored size: 321 Bytes
Contents
module RestMan module Payload class UrlEncoded < Base def build_stream(params = nil) @stream = StringIO.new(Utils.encode_query_string(params)) @stream.seek(0) end def headers super.merge({'Content-Type' => 'application/x-www-form-urlencoded'}) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rest-man-1.1.0 | lib/restman/payload/url_encoded.rb |