40 lines
869 B
C#
40 lines
869 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
|
|||
|
|
using System.Text;
|
|||
|
|
using System.IO;
|
|||
|
|
/**
|
|||
|
|
* Copyright (c) 2018 Tencent Cloud. All rights reserved.
|
|||
|
|
* 11/2/2018 4:39:49 PM
|
|||
|
|
* bradyxiao
|
|||
|
|
*/
|
|||
|
|
namespace COSXML.Network
|
|||
|
|
{
|
|||
|
|
public class Response
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
public int Code { get; set; }
|
|||
|
|
|
|||
|
|
public string Message { get; set; }
|
|||
|
|
|
|||
|
|
public Dictionary<string, List<string>> Headers { get; set; }
|
|||
|
|
|
|||
|
|
public long ContentLength { get; set; }
|
|||
|
|
|
|||
|
|
public string ContentType { get; set; }
|
|||
|
|
|
|||
|
|
public ResponseBody Body { get; set; }
|
|||
|
|
|
|||
|
|
public virtual void HandleResponseHeader() { }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// handle body successfully or throw exception
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="ex"></param>
|
|||
|
|
/// <param name="isSuccess"></param>
|
|||
|
|
public virtual void OnFinish(bool isSuccess, Exception ex) { }
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|