Location

scamper.http.headers.Location
final class Location(response: HttpResponse) extends AnyVal

Adds standardized access to Location header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def hasLocation: Boolean

Tests for Location header.

Tests for Location header.

Attributes

def location: Uri

Gets Location header value.

Gets Location header value.

Attributes

Throws
HeaderNotFound

if Location is not present

def locationOption: Option[Uri]

Gets Location header value if present.

Gets Location header value if present.

Attributes

Creates new response with Location header removed.

Creates new response with Location header removed.

Attributes

Creates new response with Location header set to supplied value.

Creates new response with Location header set to supplied value.

Attributes