Classes
The following classes are available globally.
-
Undocumented
See moreDeclaration
Swift
public class ClientStreamingCallHandler<RequestMessage, ResponseMessage> : AnyCallHandler, RequestProcessable, ResponseProcessable where RequestMessage : GRPCMessage, ResponseMessage : GRPCMessage -
Undocumented
See moreDeclaration
Swift
public class ServerStreamingCallHandler<RequestMessage, ResponseMessage> : AnyCallHandler, RequestProcessable, StreamingResponseProcessable where RequestMessage : GRPCMessage, ResponseMessage : GRPCMessage -
Undocumented
See moreDeclaration
Swift
public class StreamingCallHandler<RequestMessage, ResponseMessage> : AnyCallHandler, RequestProcessable, StreamingResponseProcessable where RequestMessage : GRPCMessage, ResponseMessage : GRPCMessage -
Undocumented
See moreDeclaration
Swift
public class UnaryCallHandler<RequestMessage, ResponseMessage> : AnyCallHandler, RequestProcessable, ResponseProcessable where RequestMessage : GRPCMessage, ResponseMessage : GRPCMessage -
A
GRPCMiddlewareinstance can be integrated as a middleware into the Vapor application like this:app.middleware.use(GRPCMiddleware())This middleware checks the content-type of incoming requests and in handles them in case of a gRPC request or forwards them to the next middleware. It implements Vapor’s
See moreMoiddlewareprotocol which requires it to implement arespondfunction.Declaration
Swift
public class GRPCMiddleware : Middleware -
A
See moreGRPCClientStreaminstance represents a client-streaming gRPC request that provides aforEachmethod which takes a closure that gets called for each incoming message of the stream, acollectmethod that returns all incoming messages collected as an array, and a genericsucceedmethod to create a singe response future. It implements theGRPCRequestTypethat requires it to contain its VaporRequestand provides several shortcuts to several Vapor stack functionality. This is also a generic class which has type constrait for theRequestModeltype which implements theGRPCModelprotocol.Declaration
Swift
public class GRPCClientStreamRequest<RequestModel> : GRPCRequestType where RequestModel : GRPCModel -
A
See moreGRPCRequestinstance represents a unary gRPC request that provides the single incoming value and a genericsucceedmethod to create a singe response future. It implements theGRPCRequestTypethat requires it to contain its VaporRequestand provides several shortcuts to several Vapor stack functionality. This is also a generic class which has type constrait for theRequestModeltype which implements theGRPCModelprotocol.Declaration
Swift
public class GRPCRequest<RequestModel> : GRPCRequestType where RequestModel : GRPCModel -
A
See moreGRPCServerStreamRequestinstance represents a server-streaming gRPC request that provides the single incoming value andsendResponseandsendEndmethods to send a multiple responses. It implements theGRPCRequestTypethat requires it to contain its VaporRequestand provides several shortcuts to several Vapor stack functionality. This is also a generic class which has two type constraits that implement theGRPCModelprotocol. One constraint for theRequestModeltype and one constraint for theResponseModel.Declaration
Swift
public class GRPCServerStreamRequest<RequestModel, ResponseModel> : GRPCRequestType where RequestModel : GRPCModel, ResponseModel : GRPCModel -
Undocumented
See moreDeclaration
Swift
public class GRPCStreamRequest<RequestModel, ResponseModel> : GRPCRequestType where RequestModel : GRPCModel, ResponseModel : GRPCModel
View on GitHub
Classes Reference