|
|
@ -484,8 +484,8 @@ const char *kCFStreamVarName = "grpc_cfstream"; |
|
|
|
callSafety:(GRPCCallSafety)safety |
|
|
|
callSafety:(GRPCCallSafety)safety |
|
|
|
requestsWriter:(GRXWriter *)requestWriter |
|
|
|
requestsWriter:(GRXWriter *)requestWriter |
|
|
|
callOptions:(GRPCCallOptions *)callOptions { |
|
|
|
callOptions:(GRPCCallOptions *)callOptions { |
|
|
|
// Purposely using pointer rather than length ([host length] == 0) for backwards compatibility. |
|
|
|
// Purposely using pointer rather than length (host.length == 0) for backwards compatibility. |
|
|
|
NSAssert(host.length != 0 && path.length != 0, @"Neither host nor path can be nil."); |
|
|
|
NSAssert(host != nil && path != nil, @"Neither host nor path can be nil."); |
|
|
|
NSAssert(safety <= GRPCCallSafetyCacheableRequest, @"Invalid call safety value."); |
|
|
|
NSAssert(safety <= GRPCCallSafetyCacheableRequest, @"Invalid call safety value."); |
|
|
|
NSAssert(requestWriter.state == GRXWriterStateNotStarted, |
|
|
|
NSAssert(requestWriter.state == GRXWriterStateNotStarted, |
|
|
|
@"The requests writer can't be already started."); |
|
|
|
@"The requests writer can't be already started."); |
|
|
|