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 }; }
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 }
public HttpBase(HttpLog httpLog) { _ImportRequest(httpLog); SetHttpRequest(httpLog); }