/// <summary> /// Get or sets the associated value from the collection as a single string. /// </summary> /// <param name="key">The header name.</param> /// <returns>the associated value from the collection as a StringValues or StringValues.Empty if the key is not present.</returns> public StringValues this[string key] { get { return(ParsingHelpers.GetHeader(Store, key)); } set { ParsingHelpers.SetHeader(Store, key, value); } }
/// <summary> /// Sets a specific header value. /// </summary> /// <param name="key">The header name.</param> /// <param name="value">The header value.</param> public void Set(string key, string value) { ParsingHelpers.SetHeader(Store, key, value); }