Sha256: d8b12affc7d859317c280cd545fe7926a666c50b7ce49ec3faaeba0f832914ca
Contents?: true
Size: 405 Bytes
Versions: 16
Compression:
Stored size: 405 Bytes
Contents
class Puppet::HTTP::Response def initialize(nethttp) @nethttp = nethttp end def code @nethttp.code.to_i end def reason @nethttp.message end def body @nethttp.body end def read_body(&block) @nethttp.read_body(&block) end def success? @nethttp.is_a?(Net::HTTPSuccess) end def [](name) @nethttp[name] end def drain body true end end
Version data entries
16 entries across 16 versions & 1 rubygems