object StatusCode
- Alphabetic
- By Inheritance
- StatusCode
- AnyRef
- Any
- Hide All
- Show All
- 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
-
def
apply(data: Array[Byte]): StatusCode
Gets registered status code for supplied data.
Gets registered status code for supplied data.
- Exceptions thrown
IllegalArgumentException
ifdata.size != 2
NoSuchElementException
if value not registered- Note
The data is converted to two-byte unsigned integer, which is then used to obtain status code.
-
def
apply(value: Int): StatusCode
Gets registered status code for given value.
Gets registered status code for given value.
- Exceptions thrown
NoSuchElementException
if value not registered
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
get(data: Array[Byte]): Option[StatusCode]
Gets status code for supplied data, if registered.
Gets status code for supplied data, if registered.
- Note
The data is converted to two-byte unsigned integer, which is then used to obtain status code.
-
def
get(value: Int): Option[StatusCode]
Gets status code for given value, if registered.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unapply(code: StatusCode): Option[Int]
Destructures supplied status code to its value.
-
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
- @throws( ... ) @native()
-
object
Registry
Contains registered WebSocket status codes.
Contains registered WebSocket status codes.
- Note
The status code descriptions are taken in part from those provided in RFC 6455.
Provided herein is API documentation for Scamper, the HTTP library for Scala.