EarlyData

scamper.http.headers.EarlyData
final class EarlyData(request: HttpRequest) extends AnyVal

Adds standardized access to Early-Data header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def earlyData: Int

Gets Early-Data header value.

Gets Early-Data header value.

Attributes

Throws
HeaderNotFound

if Early-Data is not present

def earlyDataOption: Option[Int]

Gets Early-Data header value if present.

Gets Early-Data header value if present.

Attributes

Creates new request with Early-Data header removed.

Creates new request with Early-Data header removed.

Attributes

def hasEarlyData: Boolean

Tests for Early-Data header.

Tests for Early-Data header.

Attributes

def setEarlyData(value: Int): HttpRequest

Creates new request with Early-Data header set to supplied value.

Creates new request with Early-Data header set to supplied value.

Attributes