object Header
For a description of the behavior of apply
, safeApply
and unsafeApply
methods, see sttp.model.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Header
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Rfc850WeekDays: Set[String]
- def accept(mediaRanges: String): Header
- def accept(mediaType: MediaType, additionalMediaTypes: MediaType*): Header
- def acceptCharset(charsetRanges: String): Header
- def acceptEncoding(encodingRanges: String): Header
- def accessControlAllowCredentials(allow: Boolean): Header
- def accessControlAllowHeaders(headerNames: String*): Header
- def accessControlAllowMethods(methods: Method*): Header
- def accessControlAllowOrigin(originRange: String): Header
- def accessControlExposeHeaders(headerNames: String*): Header
- def accessControlMaxAge(deltaSeconds: Long): Header
- def accessControlRequestHeaders(headerNames: String*): Header
- def accessControlRequestMethod(method: Method): Header
- def apply(name: String, value: String): Header
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def authorization(authType: String, credentials: String): Header
- def cacheControl(directives: Iterable[CacheDirective]): Header
- def cacheControl(first: CacheDirective, other: CacheDirective*): Header
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- def contentEncoding(encoding: String): Header
- def contentLength(length: Long): Header
- def contentRange(contentRange: ContentRange): Header
- def contentType(mediaType: MediaType): Header
- def cookie(firstCookie: Cookie, otherCookies: Cookie*): Header
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def etag(tag: ETag): Header
- def etag(tag: String): Header
- def expires(i: Instant): Header
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def ifModifiedSince(i: Instant): Header
- def ifNoneMatch(tags: List[ETag]): Header
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lastModified(i: Instant): Header
- def location(uri: Uri): Header
- def location(uri: String): Header
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def parseHttpDate(v: String): Either[String, Instant]
- def proxyAuthorization(authType: String, credentials: String): Header
- def range(range: Range): Header
- def safeApply(name: String, value: String): Either[String, Header]
- def setCookie(cookie: CookieWithMeta): Header
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toHttpDateString(i: Instant): String
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def unapply(h: Header): Option[(String, String)]
-
def
unsafeApply(name: String, value: String): Header
- Exceptions thrown
IllegalArgumentException
If the header name contains illegal characters.
- def unsafeParseHttpDate(s: String): Instant
- def userAgent(userAgent: String): Header
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def xForwardedFor(firstAddress: String, otherAddresses: String*): Header
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated