implicit final class Host extends AnyVal
Provides standardized access to Host header.
- Alphabetic
- By Inheritance
- Host
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Host(request: HttpRequest)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
getHost: Option[String]
Gets Host header value if present.
-
def
hasHost: Boolean
Tests for Host header.
-
def
host: String
Gets Host header value.
Gets Host header value.
- Exceptions thrown
HeaderNotFound
if Host is not present
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
removeHost: HttpRequest
Creates new request removing Host header.
-
def
setHost(value: String): HttpRequest
Creates new request setting Host header to supplied value.
-
def
toString(): String
- Definition Classes
- Any
Provided herein is API documentation for Scamper, the HTTP library for Scala.