Thrift: Allow a custom User-Agent with the Cocoa THttpClient.
Reviewed By: mcslee
Test Plan: None.
Other Notes:
Submitted by Andrew McGeachie, the author of the Cocoa bindings.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665440 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cocoa/src/transport/THTTPClient.h b/lib/cocoa/src/transport/THTTPClient.h
index 802ff51..d9ea1a9 100644
--- a/lib/cocoa/src/transport/THTTPClient.h
+++ b/lib/cocoa/src/transport/THTTPClient.h
@@ -7,11 +7,14 @@
NSMutableData * mRequestData;
NSData * mResponseData;
int mResponseDataOffset;
+ NSString * mUserAgent;
+ int mTimeout;
}
- (id) initWithURL: (NSURL *) aURL;
- (id) initWithURL: (NSURL *) aURL
+ userAgent: (NSString *) userAgent
timeout: (int) timeout;
- (void) setURL: (NSURL *) aURL;