implicit final class Location extends AnyVal
Provides standardized access to Location header.
- Alphabetic
- By Inheritance
- Location
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Location(response: HttpResponse)
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
getLocation: Option[URI]
Gets Location header value if present.
-
def
hasLocation: Boolean
Tests whether Location header is present.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
location: URI
Gets Location header value.
Gets Location header value.
- Exceptions thrown
HeaderNotFound
if Location is not present
-
def
removeLocation(): HttpResponse
Creates new response removing Location header.
- val response: HttpResponse
-
def
toString(): String
- Definition Classes
- Any
-
def
withLocation(value: URI): HttpResponse
Creates new response setting Location header to supplied value.