class Awscr::Signer::HeaderValue

Overview

Create a value for a Header.

header = HeaderValue.new("1")
header.to_s # => "1"
header = HeaderValue.new("1,2")
header.merge("3")
header.to_s # => "1,2,3"

Defined in:

awscr-signer/core/header_value.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(values : Array(String)) #

Create a header value from an array of values


[View source]
def self.new(value : String) #

Create a header value from a single string


[View source]

Instance Method Detail

def merge(value) #

Merge another value into this value.


[View source]
def to_s(io) #

Return the header as a string


[View source]