ByteRange

scamper.http.types.ByteRange
See theByteRange companion trait
object ByteRange

Provides factory for ByteRange.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ByteRange.type

Members list

Type members

Classlikes

sealed trait ByteRangeSpec

Byte range spec

Byte range spec

Attributes

See also
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Slice
class Suffix
case class Slice(first: Long, last: Option[Long]) extends ByteRangeSpec

Byte range spec with first position and optional last position.

Byte range spec with first position and optional last position.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Suffix(length: Long) extends ByteRangeSpec

Byte range spec with suffix length.

Byte range spec with suffix length.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def apply(specs: Seq[ByteRangeSpec]): ByteRange

Creates byte range from supplied specs.

Creates byte range from supplied specs.

Attributes

Creates byte range from supplied specs.

Creates byte range from supplied specs.

Attributes

def parse(range: String): ByteRange

Parses formatted byte range.

Parses formatted byte range.

Attributes