Sha256: 0f8b2131cb520eaa2cb9beddf2b9abc28a60331bbf2ed4162004c09615c5997e
Contents?: true
Size: 719 Bytes
Versions: 3
Compression:
Stored size: 719 Bytes
Contents
# frozen_string_literal: true # Released under the MIT License. # Copyright, 2019-2024, by Samuel Williams. require 'protocol/http/error' module Protocol module HTTP1 class Error < HTTP::Error end # The request was not able to be parsed correctly, or failed some kind of validation. class BadRequest < Error end # A header name or value was invalid, e.g. contains invalid characters. class BadHeader < BadRequest end # Indicates that the request is invalid for some reason, e.g. syntax error, invalid headers, etc. class InvalidRequest < BadRequest end # The specified content length and the given content's length do not match. class ContentLengthError < Error end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
protocol-http1-0.22.0 | lib/protocol/http1/error.rb |
protocol-http1-0.21.0 | lib/protocol/http1/error.rb |
protocol-http1-0.20.0 | lib/protocol/http1/error.rb |