protected override async Task GetResponse()
        {
            //Debug.WriteLine("GetResponse");
            Response = await ProxyResponse.From(RemoteSocket, SecureRemoteStream, _requestInspector);

            //Debug.WriteLine("GetResponse - DONE");
        }
        public HarResponseInspector(ProxyResponse response, Entry entry)
        {
            _response = response;
            _entry = entry;

            var responseInfo = new ResponseInfo();
            _entry.Response = responseInfo;
        }
Exemple #3
0
        public HarResponseInspector(ProxyResponse response, Entry entry)
        {
            _response = response;
            _entry    = entry;

            var responseInfo = new ResponseInfo();

            _entry.Response = responseInfo;
        }
Exemple #4
0
        async public static Task<ProxyResponse> From(Socket socket, Stream stream, IRequestInspector requestInspector)
        {
            var response = new ProxyResponse();

            response.RemoteSocket = socket;
            response.RemoteStream = stream;

            requestInspector.OnResponseBegun(response);

            await response.ReadPrologue();

            await response.ReadContent();

            return response;
        }
Exemple #5
0
        async public static Task <ProxyResponse> From(Socket socket, Stream stream, IRequestInspector requestInspector)
        {
            var response = new ProxyResponse();

            response.RemoteSocket = socket;
            response.RemoteStream = stream;

            requestInspector.OnResponseBegun(response);

            await response.ReadPrologue();

            await response.ReadContent();

            return(response);
        }
        void IRequestInspector.OnResponseBegun(ProxyResponse response)
        {
            var responseInspector = new HarResponseInspector(response, _entry);

            response.RegisterInspector(responseInspector);
        }
 void IRequestInspector.OnResponseBegun(ProxyResponse response)
 {
     var responseInspector = new HarResponseInspector(response, _entry);
     response.RegisterInspector(responseInspector);
 }
 protected async virtual Task GetResponse()
 {
     //Debug.WriteLine("Getting Response");
     Response = await ProxyResponse.From(RemoteSocket, RemoteStream, _requestInspector);
 }
Exemple #9
0
 protected async virtual Task GetResponse()
 {
     //Debug.WriteLine("Getting Response");
     Response = await ProxyResponse.From(RemoteSocket, RemoteStream, _requestInspector);
 }