UserAgent

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

Adds standardized access to User-Agent header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def hasUserAgent: Boolean

Tests for User-Agent header.

Tests for User-Agent header.

Attributes

def setUserAgent(values: Seq[ProductType]): HttpRequest

Creates new request with User-Agent header set to supplied value.

Creates new request with User-Agent header set to supplied value.

Attributes

Creates new request with User-Agent header set to supplied value.

Creates new request with User-Agent header set to supplied value.

Attributes

Gets User-Agent header values.

Gets User-Agent header values.

Attributes

Returns

header values or empty sequence if User-Agent is not present

def userAgentOption: Option[Seq[ProductType]]

Gets User-Agent header values if present.

Gets User-Agent header values if present.

Attributes

Creates new request with User-Agent header removed.

Creates new request with User-Agent header removed.

Attributes