StreamBodyIO
Value members
Concrete methods
Add an example of a "deserialized" stream value. This should be given in an encoded form, e.g. in case of json - as a String, as the stream body doesn't have access to the codec that will be later used for deserialization.
Add an example of a "deserialized" stream value. This should be given in an encoded form, e.g. in case of json - as a String, as the stream body doesn't have access to the codec that will be later used for deserialization.
Lift this streaming body into an EndpointIO, so that it can be used as a regular endpoint input/output, "forgetting" the streaming requirement. This is useful when using the streaming body in Tapir.oneOf or Tapir.oneOfBody, however at the expense of type safety: the fact that the endpoint can only be interpreted by an interpreter supporting the given stream type is lost; in case of a mismatch, a run-time error will occur.
Lift this streaming body into an EndpointIO, so that it can be used as a regular endpoint input/output, "forgetting" the streaming requirement. This is useful when using the streaming body in Tapir.oneOf or Tapir.oneOfBody, however at the expense of type safety: the fact that the endpoint can only be interpreted by an interpreter supporting the given stream type is lost; in case of a mismatch, a run-time error will occur.