HttpVersion

final case
class HttpVersion extends Renderable with 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 Params
major

The major version, 0 to 9 inclusive

minor

The minor version, 0 to 9 inclusive

See also

Semantics, Protocol Versioning

Companion
object
trait Serializable
trait Product
trait Equals
trait Ordered[HttpVersion]
trait Comparable[HttpVersion]
class Object
trait Matchable
class Any

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)
Definition Classes
Ordered
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
Definition Classes

Inherited methods

def <(that: HttpVersion): Boolean
Inherited from
Ordered
def <=(that: HttpVersion): Boolean
Inherited from
Ordered
def >(that: HttpVersion): Boolean
Inherited from
Ordered
def >=(that: HttpVersion): Boolean
Inherited from
Ordered
def compareTo(that: HttpVersion): Int
Inherited from
Ordered
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def renderString: String

Generates a String rendering of this object

Generates a String rendering of this object

Inherited from
Renderable
override
def toString: String
Definition Classes
Renderable -> Any
Inherited from
Renderable