HttpVersion

org.http4s.HttpVersion
See theHttpVersion companion object
final case class HttpVersion extends Renderable, Ordered[HttpVersion]

HTTP's version number consists of two decimal digits separated by a "." (period or decimal point). The first digit ("major version") indicates the messaging syntax, whereas the second digit ("minor version") indicates the highest minor version within that major version to which the sender is conformant (able to understand for future communication).

Value parameters

major

The major version, 0 to 9 inclusive

minor

The minor version, 0 to 9 inclusive

Attributes

See also

Semantics, Protocol Versioning

Companion
object
Source
HttpVersion.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Renderable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def compare(that: HttpVersion): Int

Orders by major version ascending, then minor version ascending.

Orders by major version ascending, then minor version ascending.

>>> List(HttpVersion.`HTTP/1.0`, HttpVersion.`HTTP/1.1`, HttpVersion.`HTTP/0.9`).sorted
List(HTTP/0.9, HTTP/1.0, HTTP/1.1)

Attributes

Definition Classes
Source
HttpVersion.scala
override def render(writer: Writer): Writer

Renders as an HTTP/1.1 string

Renders as an HTTP/1.1 string

>>> HttpVersion.`HTTP/1.1`.renderString
HTTP/1.1

Attributes

Definition Classes
Source
HttpVersion.scala

Inherited methods

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Generates a String rendering of this object

Generates a String rendering of this object

Attributes

Inherited from:
Renderable
Source
Renderable.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Renderable -> Any
Inherited from:
Renderable
Source
Renderable.scala