HeaderEventArgs.cs 848 B

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