/// <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> /// Get 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 single string or null if the key is not present.</returns> public string Get(string key) { return(ParsingHelpers.GetHeader(Store, key)); }