Sha256: 35189fb190a1f7d5fa03c52e0ad834e30071bc5fa6071838500c6aad39f79909

Contents?: true

Size: 264 Bytes

Versions: 5

Compression:

Stored size: 264 Bytes

Contents

module MusicBrainz
  module ClientModules
    module TransparentProxy
      def get_contents(url)
        response = http.get(url)
        { body: response.body, status: response.status }
      rescue
        { body: nil, status: 500 }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
musicbrainz-0.7.6 lib/musicbrainz/client_modules/transparent_proxy.rb
musicbrainz-0.7.5 lib/musicbrainz/client_modules/transparent_proxy.rb
musicbrainz-0.7.4 lib/musicbrainz/client_modules/transparent_proxy.rb
musicbrainz-0.7.3 lib/musicbrainz/client_modules/transparent_proxy.rb
musicbrainz-0.7.2 lib/musicbrainz/client_modules/transparent_proxy.rb