HeaderEventArgs.cs 1011 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. namespace OSHttpServer.Parser
  3. {
  4. /// <summary>
  5. /// Event arguments used when a new header have been parsed.
  6. /// </summary>
  7. public class HeaderEventArgs : EventArgs
  8. {
  9. /// <summary>
  10. /// Initializes a new instance of the <see cref="HeaderEventArgs"/> class.
  11. /// </summary>
  12. /// <param name="name">Name of header.</param>
  13. /// <param name="value">Header value.</param>
  14. public HeaderEventArgs(string name, string value)
  15. {
  16. Name = name;
  17. Value = value;
  18. }
  19. /// <summary>
  20. /// Initializes a new instance of the <see cref="HeaderEventArgs"/> class.
  21. /// </summary>
  22. public HeaderEventArgs()
  23. {
  24. }
  25. /// <summary>
  26. /// Gets or sets header name.
  27. /// </summary>
  28. public string Name { get; set; }
  29. /// <summary>
  30. /// Gets or sets header value.
  31. /// </summary>
  32. public string Value { get; set; }
  33. }
  34. }