Sha256: 4907de586fe6f4cbea3dfe5c729890c34469f11bf16c708c5857141c746f4050

Contents?: true

Size: 387 Bytes

Versions: 39

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2019-2023, by Samuel Williams.

module Protocol
	module HTTP
		module Header
			# Header value which is split by newline charaters (e.g. cookies).
			class Multiple < Array
				def initialize(value)
					super()
					
					self << value
				end
				
				def to_s
					join("\n")
				end
			end
		end
	end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
protocol-http-0.45.0 lib/protocol/http/header/multiple.rb
protocol-http-0.44.0 lib/protocol/http/header/multiple.rb
protocol-http-0.43.0 lib/protocol/http/header/multiple.rb
protocol-http-0.42.0 lib/protocol/http/header/multiple.rb
protocol-http-0.41.0 lib/protocol/http/header/multiple.rb
protocol-http-0.40.0 lib/protocol/http/header/multiple.rb
protocol-http-0.39.0 lib/protocol/http/header/multiple.rb
protocol-http-0.38.0 lib/protocol/http/header/multiple.rb
protocol-http-0.37.0 lib/protocol/http/header/multiple.rb
protocol-http-0.36.0 lib/protocol/http/header/multiple.rb
protocol-http-0.35.0 lib/protocol/http/header/multiple.rb
protocol-http-0.34.0 lib/protocol/http/header/multiple.rb
protocol-http-0.33.0 lib/protocol/http/header/multiple.rb
protocol-http-0.32.0 lib/protocol/http/header/multiple.rb
protocol-http-0.31.0 lib/protocol/http/header/multiple.rb
protocol-http-0.30.0 lib/protocol/http/header/multiple.rb
protocol-http-0.29.0 lib/protocol/http/header/multiple.rb
protocol-http-0.28.2 lib/protocol/http/header/multiple.rb
protocol-http-0.28.1 lib/protocol/http/header/multiple.rb
protocol-http-0.28.0 lib/protocol/http/header/multiple.rb