the request that was used to generate response
to be seen by deserialize. request
is of type Any
because
requests in generated Scala and Java services do not share a supertype.
Deserialize the given bytes.
Deserialize the given bytes.
Ensures that deserialization will only happen once regardless of future inputs. If different bytes are seen on future calls, this will still return the first deserialized result.
the request that was used to generate response to be seen by deserialize.
the request that was used to generate response
to be seen by deserialize. request
is of type Any
because
requests in generated Scala and Java services do not share a supertype.
Used by Thrift and ThriftMux to facilitate giving the Finagle stack access to the deserialized forms of Thrift requests and responses.
When using Scrooge for code generation, a proper
DeserializationCtx
will be available to code viaContexts.local(DeserializeCtx.Key)
.While this is thread-safe, it should only be used for the life of a single request/response pair.