WebSocketBodyOutput
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Atom[T]trait Basic[T]trait EndpointTransput[T]trait EndpointTransputMacros[T]class Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Note: some interpreters ignore this setting.
Note: some interpreters ignore this setting.
Value parameters
- p
-
If
Some
, send the givenPing
frame at the given interval. IfNone
, do not automatically send pings.
Attributes
Note: some interpreters ignore this setting.
Note: some interpreters ignore this setting.
Value parameters
- a
-
If
true
, WebSocketFrame.Ping frames will cause a matching WebSocketFrame.Pong frame to be sent back, and won't be passed to codecs for decoding. Note that only some interpreters expose ping-pong frames.
Attributes
Value parameters
- c
-
If
true
, fragmented frames will be concatenated, and the data frames that therequests
&responses
codecs decode will always havefinalFragment
set totrue
. Note that only some interpreters expose fragmented frames.
Attributes
Note: some interpreters ignore this setting.
Note: some interpreters ignore this setting.
Value parameters
- d
-
If
true
, WebSocketFrame.Close frames will be passed to the request codec for decoding (in server interpreters).
Attributes
Note: some interpreters ignore this setting.
Note: some interpreters ignore this setting.
Value parameters
- d
-
If
true
, WebSocketFrame.Close frames will be passed to the response codec for decoding (in client interpreters).
Attributes
Note: some interpreters ignore this setting.
Note: some interpreters ignore this setting.
Value parameters
- i
-
If
true
, WebSocketFrame.Pong frames will be ignored and won't be passed to the codecs for decoding. Note that only some interpreters expose ping-pong frames.
Attributes
Attributes
- Definition Classes
Inherited methods
Attributes
- Inherited from:
- Atom
Attributes
- Inherited from:
- Atom
Attributes
- Inherited from:
- Atom
Attributes
- Inherited from:
- Atom
Attributes
- Definition Classes
- Inherited from:
- Atom
Attributes
- Inherited from:
- EndpointTransput
Attributes
- Inherited from:
- EndpointTransput
Attributes
- Inherited from:
- EndpointTransputMacros
Adds the given validator, and maps to the given higher-level type U
.
Adds the given validator, and maps to the given higher-level type U
.
Unlike a .validate(v).map(f)(g)
invocation, during decoding the validator is run before applying the f
function. If there are validation errors, decoding fails. However, the validator is then invoked again on the fully decoded value.
This is useful to create inputs/outputs for types, which are unrepresentable unless the validator's condition is met, e.g. due to preconditions in the constructor.
Attributes
- See also
- Inherited from:
- EndpointTransput
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Adds a validator.
Adds a validator.
Note that validation is run on a fully decoded value. That is, during decoding, first the decoding functions are run, followed by validations. Hence any functions provided in subsequent .map
s or .mapDecode
s will be invoked before validation.
Attributes
- See also
- Inherited from:
- EndpointTransput
Adds a validator which validates each element in the collection.
Adds a validator which validates each element in the collection.
Should only be used if the schema hasn't been created by .map
ping another one, but directly from Schema[U]
. Otherwise the shape of the schema doesn't correspond to the type T
, but to some lower-level representation of the type. This might cause invalid results at run-time.
Attributes
- Inherited from:
- Atom
Adds a validator which validates the option's element, if it is present.
Adds a validator which validates the option's element, if it is present.
Should only be used if the schema hasn't been created by .map
ping another one, but directly from Schema[U]
. Otherwise the shape of the schema doesn't correspond to the type T
, but to some lower-level representation of the type. This might cause invalid results at run-time.
Attributes
- Inherited from:
- Atom