Overview
-
module Protocol-
module HTTP1-
module BodyA collection of classes for handling HTTP/1.1 request and response bodies.
-
class Chunked < HTTP::Body::ReadableRepresents a chunked body, which is a series of chunks, each with a length prefix.
-
class Fixed < HTTP::Body::ReadableRepresents a fixed length body.
-
class Remainder < HTTP::Body::ReadableRepresents the remainder of the body, which reads all the data from the connection until it is finished.
-
-
class ConnectionRepresents a single HTTP/1.x connection, which may be used to send and receive multiple requests and responses.
-
class Error < HTTP::ErrorThe base class for all HTTP/1.x errors.
-
class ProtocolError < ErrorThe protocol was violated in some way, e.g. trying to write a request while reading a response.
-
class LineLengthError < ErrorThe request line was too long.
-
class BadRequest < ErrorThe request was not able to be parsed correctly, or failed some kind of validation.
-
class BadHeader < BadRequestA header name or value was invalid, e.g. contains invalid characters.
-
class InvalidRequest < BadRequestIndicates that the request is invalid for some reason, e.g. syntax error, invalid headers, etc.
-
class ContentLengthError < ErrorThe specified content length and the given content's length do not match.
-
-
-
Provider