Attributes
- Companion
- class
- Source
- HttpVersion.scala
- Graph
-
- Supertypes
- Self type
-
HttpVersion.type
Members list
Type members
Inherited types
The names of the product elements
The name of the type
Value members
Concrete methods
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)
Attributes
- Source
- HttpVersion.scala
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)
Value parameters
- major
-
The major version,
0
to9
inclusive - minor
-
The minor version,
0
to9
inclusive
Attributes
- Source
- HttpVersion.scala
Deprecated methods
Attributes
- Deprecated
- true
- Source
- HttpVersion.scala
Concrete fields
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.
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.
Attributes
- See also
- Source
- HttpVersion.scala
HTTP/1.0 is the first major version of HTTP.
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.
Attributes
- See also
-
Hypertext Transfer Protocol -- HTTP/1.1 (obsolete)
Hypertext Transfer Protocol -- HTTP/1.1 (obsolete)
https://datatracker.ietf.org/doc/draft-ietf-httpbis-messaging/ HTTP/1.1 (draft)
- Source
- HttpVersion.scala
HTTP/2 is the second major version of HTTP. It defines no minor versions, so minor version 0
is implied.
HTTP/2 is the second major version of HTTP. It defines no minor versions, so minor version 0
is implied.
Attributes
- See also
- Source
- HttpVersion.scala
HTTP/3 is the third major version of HTTP. It defines no minor versions, so minor version 0
is implied.
HTTP/3 is the third major version of HTTP. It defines no minor versions, so minor version 0
is implied.
Attributes
- See also
-
Transfer Protocol Version 3 (HTTP/3) (draft)
- Source
- HttpVersion.scala
Implicits
Implicits
Attributes
- Source
- HttpVersion.scala