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
to9
inclusive- minor
The minor version,
0
to9
inclusive
- See also:
Semantics, Protocol Versioning
- Companion:
- object
- Source:
- HttpVersion.scala
trait Serializable
trait Product
trait Equals
trait Ordered[HttpVersion]
trait Comparable[HttpVersion]
trait Renderable
class Object
trait Matchable
class Any
Value members
Concrete methods
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
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")
- Deprecated
- Source:
- HttpVersion.scala
Inherited methods
Generates a String rendering of this object
Generates a String rendering of this object
- Inherited from:
- Renderable
- Source:
- Renderable.scala