示例#1
0
文件: HttpBase.cs 项目: 24/source_04
 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
     };
 }
示例#2
0
文件: HttpBase.cs 项目: 24/source_04
        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
        }
示例#3
0
文件: HttpBase.cs 项目: 24/source_04
 public HttpBase(HttpLog httpLog)
 {
     _ImportRequest(httpLog);
     SetHttpRequest(httpLog);
 }