http4k / org.http4k.serverless / DetectBinaryBody
interface DetectBinaryBody
OpenWhisk Base64 encodes Binary requests and responses when they are sent to the deployed Function. This interface allows for custom implementations of that logic, which might be required if your function supports more than one endpoint (with mixed request/response types).
Name | Summary |
---|---|
isBinary | abstract fun isBinary(request: Request ): Boolean abstract fun isBinary(request: Response ): Boolean |
Name | Summary |
---|---|
Binary | val Binary: DetectBinaryBody |
BinaryRequestOnly | val BinaryRequestOnly: DetectBinaryBody |
BinaryResponseOnly | val BinaryResponseOnly: DetectBinaryBody |
NonBinary | val NonBinary: DetectBinaryBody |