Sha256: ef3a943682213fb2dae7fcfe0baba93a05365924d1b26eda33984f0ac428e380

Contents?: true

Size: 300 Bytes

Versions: 30

Compression:

Stored size: 300 Bytes

Contents

# frozen_string_literal: true

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

module Protocol
	module HTTP
		module Header
			class ETag < String
				def << value
					replace(value)
				end
				
				def weak?
					self.start_with?('W/')
				end
			end
		end
	end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
protocol-http-0.36.0 lib/protocol/http/header/etag.rb
protocol-http-0.35.0 lib/protocol/http/header/etag.rb
protocol-http-0.34.0 lib/protocol/http/header/etag.rb
protocol-http-0.33.0 lib/protocol/http/header/etag.rb
protocol-http-0.32.0 lib/protocol/http/header/etag.rb
protocol-http-0.31.0 lib/protocol/http/header/etag.rb
protocol-http-0.30.0 lib/protocol/http/header/etag.rb
protocol-http-0.29.0 lib/protocol/http/header/etag.rb
protocol-http-0.28.2 lib/protocol/http/header/etag.rb
protocol-http-0.28.1 lib/protocol/http/header/etag.rb
protocol-http-0.28.0 lib/protocol/http/header/etag.rb
protocol-http-0.27.0 lib/protocol/http/header/etag.rb
protocol-http-0.26.8 lib/protocol/http/header/etag.rb
protocol-http-0.26.7 lib/protocol/http/header/etag.rb
protocol-http-0.26.6 lib/protocol/http/header/etag.rb
protocol-http-0.26.5 lib/protocol/http/header/etag.rb
protocol-http-0.26.4 lib/protocol/http/header/etag.rb
protocol-http-0.26.3 lib/protocol/http/header/etag.rb
protocol-http-0.26.2 lib/protocol/http/header/etag.rb
protocol-http-0.26.1 lib/protocol/http/header/etag.rb