Ejemplo n.º 1
0
 private void ImportRequest(HttpLog httpLog)
 {
     _httpRequestLog = httpLog.Request;
     _httpResponseLog = httpLog.Response;
     HttpValuesLog values = httpLog.Values;
     _requestTime = values.RequestTime;
     _requestDuration = values.RequestDuration;
     _resultCharset = values.Charset;
     _resultContentType = values.ContentType;
     //public UrlCachePathResult UrlCachePath = null;
     //public string CacheFile = null;      // sub-path of cache file
 }
Ejemplo n.º 2
0
 private void SetHttpRequest(HttpLog httpLog)
 {
     _httpRequest = new HttpRequest();
     _httpRequest.Url = httpLog.Request.Uri.ToString();
     //_httpRequest.Method = _httpRequestLog.Method;
     //_httpRequest.Referer
     _httpRequest.Content = httpLog.Request.Content;
     _httpRequest.UrlCachePath = new UrlCachePathResult { SubPath = httpLog.Values.CacheFile };
 }
Ejemplo n.º 3
0
 public HttpBase(HttpLog httpLog)
 {
     ImportRequest(httpLog);
     SetHttpRequest(httpLog);
 }