Slide 21
Slide 21 text
func handleRequest(
_ request: RPCRequest, ...
) {
switch request.payload {
case let .createBuildRequest(message):
let buildRequest = message.buildRequest
if buildRequest.parameters.action == "indexbuild",
buildRequest.configuredTargets.count > 1 {
context.sendErrorResponse("Abort", request: request)
return
}
default:
break
}
context.forwardRequest()
}