case class CorsRejection(origin: Option[HttpOrigin], method: Option[HttpMethod], headers: Option[Seq[String]]) extends javadsl.CorsRejection with Rejection with Product with Serializable
Rejection created when a CORS request was invalid. In case of a preflight request, one to three of the causes can be marked as invalid. In case of an actual request, only the origin can be marked as invalid.
Note: when the three causes are None, the request itself was invalid. For example
the Origin header can be missing.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CorsRejection
- Serializable
- Serializable
- Product
- Equals
- CorsRejection
- CustomRejection
- Rejection
- Rejection
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new CorsRejection(origin: Option[HttpOrigin], method: Option[HttpMethod], headers: Option[Seq[String]])
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getHeaders: Optional[List[String]]
- Definition Classes
- CorsRejection → CorsRejection
-
def
getMethod: Optional[HttpMethod]
- Definition Classes
- CorsRejection → CorsRejection
-
def
getOrigin: Optional[HttpOrigin]
- Definition Classes
- CorsRejection → CorsRejection
- val headers: Option[Seq[String]]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val method: Option[HttpMethod]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val origin: Option[HttpOrigin]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )