Sha256: 8269b524c5a6af4d10d0602cf0e087470d05ad2a76f41649297df4f3efe4b444

Contents?: true

Size: 300 Bytes

Versions: 8

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

8 entries across 8 versions & 1 rubygems

Version Path
protocol-http-0.44.0 lib/protocol/http/header/etag.rb
protocol-http-0.43.0 lib/protocol/http/header/etag.rb
protocol-http-0.42.0 lib/protocol/http/header/etag.rb
protocol-http-0.41.0 lib/protocol/http/header/etag.rb
protocol-http-0.40.0 lib/protocol/http/header/etag.rb
protocol-http-0.39.0 lib/protocol/http/header/etag.rb
protocol-http-0.38.0 lib/protocol/http/header/etag.rb
protocol-http-0.37.0 lib/protocol/http/header/etag.rb