class Protocol::HTTP::Header::Priority
The ‘priority` header allows clients to express their preference for how resources should be prioritized by the server. It can include directives like `urgency` to specify the importance of a request, and `progressive` to indicate whether a response can be delivered incrementally.
Represents the `priority` header, used to indicate the relative importance of an HTTP request.
def << value
def << value super(value.downcase) end
def initialize(value = nil)
Initialize the priority header with the given value.
def initialize(value = nil) super(value&.downcase) end
def progressive?
def progressive? self.include?(PROGRESSIVE) end
def urgency
Returns the urgency level if specified.
def urgency if value = self.find{|value| value.start_with?("urgency=")} _, level = value.split("=", 2) return level end end