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 }
private HttpRequestLog GetHttpRequestLog() { if (_httpRequestLog == null) { if (_webRequest == null) throw new PBException("WebRequest is not defined"); _httpRequestLog = new HttpRequestLog(_webRequest, _httpRequest.Content); } return _httpRequestLog; }