コード例 #1
0
 /// <summary>Write</summary>
 /// <param name="buffer">byte[]</param>
 /// <param name="offset">offset</param>
 /// <param name="count">count</param>
 public override void Write(byte[] buffer, int offset, int count)
 {
     if (Response.StatusCode == 200 && Response.ContentType.ToLower().Contains("application/json"))
     {
         // レスポンスをバッファに蓄える
         TempBuffer.Write(buffer, offset, count);
     }
     else
     {
         ResponseStream.Write(buffer, offset, count);
     }
 }