Sha256: 12f12f9624feea7dbbf3b87389b95a42f362079b56c642852b9bb78b39fbe6d2

Contents?: true

Size: 458 Bytes

Versions: 10

Compression:

Stored size: 458 Bytes

Contents

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
skylight-0.3.21 lib/skylight/formatters/http.rb
skylight-0.3.20 lib/skylight/formatters/http.rb
skylight-0.3.19 lib/skylight/formatters/http.rb
skylight-0.3.18 lib/skylight/formatters/http.rb
skylight-0.3.17 lib/skylight/formatters/http.rb
skylight-0.3.14 lib/skylight/formatters/http.rb
skylight-0.3.13 lib/skylight/formatters/http.rb
skylight-0.3.12 lib/skylight/formatters/http.rb
skylight-0.3.11 lib/skylight/formatters/http.rb
skylight-0.3.10 lib/skylight/formatters/http.rb