/// <summary> /// Log Http Response /// </summary> /// <param name="response">Http Response</param> public void LogResponse(HttpResponse response) { if (response != null) { Log("=== HTTP Response ==="); Log("Receive url: " + response.Url); Log("Status: " + response.Status); LogHeaders(response.Headers); Log("Content:\n" + response.GetBodyAsString()); } }
/// <summary> /// Constructor /// </summary> /// <param name="e"></param> /// <param name="httpResponse"></param> public HttpRequestException(Exception e, HttpResponse httpResponse) : base(e.Message) { HttpResponse = httpResponse; }