class Fictium::Postman::V2Exporter::HeaderFormatter

Public Instance Methods

format(http_subject) click to toggle source
# File lib/fictium/exporters/postman/v2_exporter/header_formatter.rb, line 5
def format(http_subject)
  return [] if http_subject.blank?

  [].tap do |header|
    content = http_subject[:content_type]
    header << { key: 'Content-Type', value: content } if content.present?
    # TODO: Add the rest of the headers
  end
end