/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected virtual void OnHeaderReceived(object sender, HeaderEventArgs e) { if (string.Compare(e.Name, "expect", true) == 0 && e.Value.Contains("100-continue")) { Respond("HTTP/1.0", HttpStatusCode.Continue, "Please continue mate."); } _currentRequest.AddHeader(e.Name, e.Value); }
private void OnHeader(object sender, HeaderEventArgs e) { _headers.Add(e.Name, e.Value); }