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
Source:
HttpVersion.scala
trait Product
trait Equals
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
Source:
HttpVersion.scala
override def render(writer: Writer): writer.type

Renders as an HTTP/1.1 string

Renders as an HTTP/1.1 string

>>> HttpVersion.`HTTP/1.1`.renderString
HTTP/1.1
Definition Classes
Source:
HttpVersion.scala

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
Source:
HttpVersion.scala

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
Source:
Renderable.scala
override def toString: String
Definition Classes
Renderable -> Any
Inherited from:
Renderable
Source:
Renderable.scala