//, bool isGoogleDataRequest) /// <summary> /// Construct the requestor with valid settings. /// </summary> /// <param name="op"></param> /// <param name="format"></param> /// <param name="contentType"></param> /// <param name="host"></param> /// <param name="uri"></param> /// <param name="contentBody"></param> public RequestorBase(Operation op, HTTPFormat format, ContentType contentType , string host, string uri, string contentBody, string accessToken) { HeaderOperation = op; HeaderHTTPFormat = format; HeaderContentType = contentType; Host = host; URI = uri; ContentBody = contentBody; AccessToken = accessToken; CustomHeaders = new List<string>(); }
public GoogleTCPRequestor(Operation op, HTTPFormat format, ContentType contentType , string host, string uri, string contentBody, string accessToken , bool appendGoogleVersion) : base(op, format, contentType, host, uri, contentBody, accessToken) { if (appendGoogleVersion) { CustomHeaders.Add(GetGoogleVersionString()); } if (accessToken != null) { CustomHeaders.Add(GetAccessTokenString()); } }
public TCPRequestor(Operation op, HTTPFormat format, ContentType contentType , string host, string uri, string contentBody, string accessToken) : base(op, format, contentType, host, uri, contentBody, accessToken) { //just load up using base methods }