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; }
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; }
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); }
protected async virtual Task GetResponse() { //Debug.WriteLine("Getting Response"); Response = await ProxyResponse.From(RemoteSocket, RemoteStream, _requestInspector); }