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    
skylight / lib / skylight / formatters / http.rb
Size: Mime:
module Skylight
  module Formatters
    module HTTP
      def self.build_opts(method, scheme, host, port, path, query)
        { category: "api.http.#{method.downcase}",
          title:    "#{method.upcase} #{host}",
          annotations: {
            method: method.upcase,
            scheme: scheme,
            host:   host,
            port:   port ? port.to_i : nil,
            path:   path,
            query:  query }}
      end
    end
  end
end