Sha256: 216c2789a397663d705bc5f83188fe0c373a32248710adf6accd0898ebe0978b

Contents?: true

Size: 292 Bytes

Versions: 2

Compression:

Stored size: 292 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
musicbrainz-0.8.0 lib/musicbrainz/client_modules/transparent_proxy.rb
musicbrainz-0.7.7 lib/musicbrainz/client_modules/transparent_proxy.rb