|
|
@ -71,7 +71,7 @@ class ViewController: UIViewController { |
|
|
|
NSLog("2. Response trailers: \(RPC.responseTrailers)") |
|
|
|
NSLog("2. Response trailers: \(RPC.responseTrailers)") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
RPC.requestHeaders["My-Header"] = "My value" |
|
|
|
RPC.requestHeaders.setObject("My value", forKey: "My-Header") |
|
|
|
|
|
|
|
|
|
|
|
RPC.start() |
|
|
|
RPC.start() |
|
|
|
|
|
|
|
|
|
|
@ -84,7 +84,7 @@ class ViewController: UIViewController { |
|
|
|
|
|
|
|
|
|
|
|
let call = GRPCCall(host: RemoteHost, path: method.HTTPPath, requestsWriter: requestsWriter) |
|
|
|
let call = GRPCCall(host: RemoteHost, path: method.HTTPPath, requestsWriter: requestsWriter) |
|
|
|
|
|
|
|
|
|
|
|
call.requestHeaders["My-Header"] = "My value" |
|
|
|
call.requestHeaders.setObject("My value", forKey: "My-Header") |
|
|
|
|
|
|
|
|
|
|
|
call.startWithWriteable(GRXWriteable { response, error in |
|
|
|
call.startWithWriteable(GRXWriteable { response, error in |
|
|
|
if let response = response as? NSData { |
|
|
|
if let response = response as? NSData { |
|
|
|