MethodDefinition
data class MethodDefinition<T> @InternalKrosstalkApi constructor(name: String, endpoint: Endpoint, httpMethod: String, contentType: String?, requiredScopes: Set<Scope>, optionalScopes: Set<Scope>, useExplicitResult: Boolean, includeStacktrace: Boolean, propagateServerExceptions: Boolean, optionalParameters: Set<String>, serverDefaultParameters: Set<String>, objectParameters: Map<String, *>, returnObject: Any?, outerWithHeaders: Boolean, innerWithHeaders: Boolean, requestHeadersParam: String?, serverUrlParam: String?, types: MethodTypes, serialization: MethodSerialization, call: MethodCaller<T>)
Content copied to clipboard
All the Krosstalk metadata associated with a krosstalk method.
Constructors
Link copied to clipboard
fun MethodDefinition(name: String, endpoint: Endpoint, httpMethod: String, contentType: String?, requiredScopes: Set<Scope>, optionalScopes: Set<Scope>, useExplicitResult: Boolean, includeStacktrace: Boolean, propagateServerExceptions: Boolean, optionalParameters: Set<String>, serverDefaultParameters: Set<String>, objectParameters: Map<String, *>, returnObject: Any?, outerWithHeaders: Boolean, innerWithHeaders: Boolean, requestHeadersParam: String?, serverUrlParam: String?, types: MethodTypes, serialization: MethodSerialization, call: MethodCaller<T>)
Content copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
whether any KrosstalkResult.ServerExceptions should include the exception stack trace
Link copied to clipboard
whether to wrap the initial result (not including KrosstalkResult handling) in WithHeaders
Link copied to clipboard
whether to wrap the final result (including KrosstalkResult handling) in WithHeaders
Link copied to clipboard
whether ExceptionHandling.propagateServerExceptions is set
Link copied to clipboard
Link copied to clipboard
parameters using ServerDefault
Link copied to clipboard
whether the result is wrapped in a KrosstalkResult