Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
http-commands / lib / http / commands / get.rb
Size: Mime:
module HTTP
  module Commands
    class Get
      include Command

      def call(uri, headers=nil)
        Request.(
          self.class.action,
          uri,
          headers: headers,
          connection: connection
        )
      end

      module Substitute
        def self.build
          Commands::Substitute.build status_code, reason_phrase
        end

        def self.reason_phrase
          'OK'
        end

        def self.status_code
          200
        end
      end
    end
  end
end