Commit 07b66dbd authored by justcoding121's avatar justcoding121 Committed by justcoding121

cleanup

parent 2f32d5bd
using System; using System;
using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;
using System.Linq;
using System.Runtime.Remoting; using System.Runtime.Remoting;
using System.Runtime.Remoting.Messaging;
using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Titanium.Web.Proxy.Helpers namespace Titanium.Web.Proxy.Helpers
{ {
/// <summary> /// <summary>
/// /// A custom network stream inherited from stream
/// with an underlying buffer
/// </summary> /// </summary>
/// <seealso cref="System.IO.Stream" /> /// <seealso cref="System.IO.Stream" />
class CustomBufferedStream : Stream internal class CustomBufferedStream : Stream
{ {
private readonly Stream baseStream; private readonly Stream baseStream;
...@@ -419,7 +416,7 @@ namespace Titanium.Web.Proxy.Helpers ...@@ -419,7 +416,7 @@ namespace Titanium.Web.Proxy.Helpers
return bufferLength > 0; return bufferLength > 0;
} }
class ReadAsyncResult : IAsyncResult private class ReadAsyncResult : IAsyncResult
{ {
public int ReadBytes { get; } public int ReadBytes { get; }
......
...@@ -139,7 +139,7 @@ namespace Titanium.Web.Proxy ...@@ -139,7 +139,7 @@ namespace Titanium.Web.Proxy
//Sorry cannot do a HTTPS request decrypt to port 80 at this time //Sorry cannot do a HTTPS request decrypt to port 80 at this time
else if (httpVerb == "CONNECT") else if (httpVerb == "CONNECT")
{ {
//Cyphen out CONNECT request headers //Siphon out CONNECT request headers
await clientStreamReader.ReadAndIgnoreAllLinesAsync(); await clientStreamReader.ReadAndIgnoreAllLinesAsync();
//write back successfull CONNECT response //write back successfull CONNECT response
await WriteConnectResponse(clientStreamWriter, version); await WriteConnectResponse(clientStreamWriter, version);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment