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 parameters:
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 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
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

Deprecated methods

@deprecated("Does not range check parameters. Will be removed from public API in 1.0.", "0.22.6")
def copy(major: Int, minor: Int): HttpVersion
Deprecated

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
Inherited from:
Ordered
Inherited from:
Product

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