public void ProcessGetResponse(HTTPResponse response)
 {
     if (response.IsStreamingFinished)
     {
         state = FileFragmentDataState.Finished;
     }
 }
 public void BeginDownload()
 {
     state = FileFragmentDataState.Downloading;
 }
 public void BeginHeadRequest()
 {
     state = FileFragmentDataState.HeadRequest;
 }
 public void ProcessHeadResponse(HTTPResponse response)
 {
     Debug.Assert(response != null, this);
     size  = Convert.ToUInt32(response.GetFirstHeaderValue("content-length"));
     state = FileFragmentDataState.ReadyForDownload;
 }