o
org.apache.pekko.http.scaladsl.model.headers
Access-Control-Allow-Origin
Companion class Access-Control-Allow-Origin
object Access-Control-Allow-Origin extends ModeledCompanion[Access-Control-Allow-Origin] with Serializable
- Source
- headers.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Access-Control-Allow-Origin
- Serializable
- ModeledCompanion
- Renderable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- val *: Access-Control-Allow-Origin
- def apply(origin: HttpOrigin): Access-Control-Allow-Origin
- def forRange(range: HttpOriginRange): Access-Control-Allow-Origin
Creates an
Access-Control-Allow-Origin
header for the given origin range.Creates an
Access-Control-Allow-Origin
header for the given origin range.CAUTION: Even though allowed by the spec (https://www.w3.org/TR/cors/#access-control-allow-origin-response-header)
Access-Control-Allow-Origin
headers with more than a single origin appear to be largely unsupported in the field. Make sure to thoroughly test such usages with all expected clients! - val lowercaseName: String
- Definition Classes
- ModeledCompanion
- val name: String
- Definition Classes
- ModeledCompanion
- val null: Access-Control-Allow-Origin
- def parseFromValueString(value: String): Either[List[ErrorInfo], Access-Control-Allow-Origin]
Parses the given value into a header of this type.
Parses the given value into a header of this type. Returns
Right[T]
if parsing was successful andLeft(errors)
otherwise.- Definition Classes
- ModeledCompanion
- final def render[R <: Rendering](r: R): r.type
- Definition Classes
- ModeledCompanion → Renderable