/// <summary> /// Parse a query string into its component key and value parts. /// </summary> /// <param name="text">The raw query string value, with or without the leading '?'.</param> /// <returns>A collection of parsed keys and values.</returns> public static IReadableStringCollection ParseQuery(string text) { return(ParsingHelpers.GetQuery(text)); }
/// <summary> /// Parses an HTTP form body. /// </summary> /// <param name="text">The HTTP form body to parse.</param> /// <returns>The <see cref="T:Microsoft.Owin.IFormCollection" /> object containing the parsed HTTP form body.</returns> public static IFormCollection ParseForm(string text) { return(ParsingHelpers.GetForm(text)); }