AcceptRanges

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

Adds standardized access to Accept-Ranges header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def acceptRanges: Seq[String]

Gets Accept-Ranges header values.

Gets Accept-Ranges header values.

Attributes

Returns

header values or empty sequence if Accept-Ranges is not present

def acceptRangesOption: Option[Seq[String]]

Gets Accept-Ranges header values if present.

Gets Accept-Ranges header values if present.

Attributes

Creates new response with Accept-Ranges header removed.

Creates new response with Accept-Ranges header removed.

Attributes

def hasAcceptRanges: Boolean

Tests for Accept-Ranges header.

Tests for Accept-Ranges header.

Attributes

def setAcceptRanges(values: Seq[String]): HttpResponse

Creates new response with Accept-Ranges header set to supplied values.

Creates new response with Accept-Ranges header set to supplied values.

Attributes

def setAcceptRanges(one: String, more: String*): HttpResponse

Creates new response with Accept-Ranges header set to supplied values.

Creates new response with Accept-Ranges header set to supplied values.

Attributes