object HttpVersion extends Serializable
- Source
- HttpVersion.scala
- Alphabetic
- By Inheritance
- HttpVersion
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
val
HTTP/0.9: HttpVersion
HTTP/0.9 was first formalized in the HTTP/1.0 spec.
HTTP/0.9 was first formalized in the HTTP/1.0 spec.
HTTP/0.9
does not literally appear in the HTTP/0.9 protocol. -
val
HTTP/1.0: HttpVersion
HTTP/1.0 is the first major version of HTTP.
HTTP/1.0 is the first major version of HTTP.
-
val
HTTP/1.1: HttpVersion
HTTP/1.1 revises HTTP/1.0, and is currently defined by six RFCs.
HTTP/1.1 revises HTTP/1.0, and is currently defined by six RFCs.
- See also
Hypertext Transfer Protocol -- HTTP/1.1 (obsolete)
Hypertext Transfer Protocol -- HTTP/1.1 (obsolete)
Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing
Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests
HTTP/1.1 (draft)
-
val
HTTP/2: HttpVersion
HTTP/2 is the second major version of HTTP.
HTTP/2 is the second major version of HTTP. It defines no minor versions, so minor version
0
is implied. -
val
HTTP/3: HttpVersion
HTTP/3 is the third major version of HTTP.
HTTP/3 is the third major version of HTTP. It defines no minor versions, so minor version
0
is implied.- See also
- implicit val catsInstancesForHttp4sHttpVersion: Order[HttpVersion] with Show[HttpVersion] with Hash[HttpVersion] with BoundedEnumerable[HttpVersion]
-
def
fromString(s: String): ParseResult[HttpVersion]
Returns an HTTP version from its HTTP/1 string representation.
Returns an HTTP version from its HTTP/1 string representation.
>>> HttpVersion.fromString("HTTP/1.1") Right(HTTP/1.1)
-
def
fromVersion(major: Int, minor: Int): ParseResult[HttpVersion]
Returns an HTTP version from a major and minor version.
Returns an HTTP version from a major and minor version.
>>> HttpVersion.fromVersion(1, 1) Right(HTTP/1.1) >>> HttpVersion.fromVersion(1, 10) Left(org.http4s.ParseFailure: Invalid HTTP version: major must be <= 9: 10)
- major
The major version,
0
to9
inclusive- minor
The minor version,
0
to9
inclusive
Deprecated Value Members
-
def
HTTP/2.0: HttpVersion
- Annotations
- @deprecated
- Deprecated
(Since version 0.22.6) Renamed to
HTTP/2
. HTTP/2 does not define minor versions.