Class: PublishingPlatformApi::PublishingPlatformHeaders
- Inherits:
-
Object
- Object
- PublishingPlatformApi::PublishingPlatformHeaders
- Defined in:
- lib/publishing_platform_api/publishing_platform_headers.rb
Class Method Summary collapse
Class Method Details
.clear_headers ⇒ Object
12 13 14 |
# File 'lib/publishing_platform_api/publishing_platform_headers.rb', line 12 def clear_headers Thread.current[:headers] = {} end |
.headers ⇒ Object
8 9 10 |
# File 'lib/publishing_platform_api/publishing_platform_headers.rb', line 8 def headers header_data.reject { |_k, v| v.nil? || v.empty? } end |
.set_header(header_name, value) ⇒ Object
4 5 6 |
# File 'lib/publishing_platform_api/publishing_platform_headers.rb', line 4 def set_header(header_name, value) header_data[header_name] = value end |