mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 14:03:03 +03:00
ReSharper conform to 'var' settings
This commit is contained in:
@@ -9,9 +9,9 @@ using System.Threading.Tasks;
|
||||
namespace Rssdp.Infrastructure
|
||||
{
|
||||
/// <summary>
|
||||
/// Parses a string into a <see cref="System.Net.Http.HttpResponseMessage"/> or throws an exception.
|
||||
/// Parses a string into a <see cref="HttpResponseMessage"/> or throws an exception.
|
||||
/// </summary>
|
||||
public sealed class HttpResponseParser : HttpParserBase<System.Net.Http.HttpResponseMessage>
|
||||
public sealed class HttpResponseParser : HttpParserBase<HttpResponseMessage>
|
||||
{
|
||||
|
||||
#region Fields & Constants
|
||||
@@ -26,16 +26,16 @@ namespace Rssdp.Infrastructure
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Parses the specified data into a <see cref="System.Net.Http.HttpResponseMessage"/> instance.
|
||||
/// Parses the specified data into a <see cref="HttpResponseMessage"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="data">A string containing the data to parse.</param>
|
||||
/// <returns>A <see cref="System.Net.Http.HttpResponseMessage"/> instance containing the parsed data.</returns>
|
||||
/// <returns>A <see cref="HttpResponseMessage"/> instance containing the parsed data.</returns>
|
||||
public override HttpResponseMessage Parse(string data)
|
||||
{
|
||||
System.Net.Http.HttpResponseMessage retVal = null;
|
||||
HttpResponseMessage retVal = null;
|
||||
try
|
||||
{
|
||||
retVal = new System.Net.Http.HttpResponseMessage();
|
||||
retVal = new HttpResponseMessage();
|
||||
|
||||
Parse(retVal, retVal.Headers, data);
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace Rssdp.Infrastructure
|
||||
/// Used to parse the first line of an HTTP request or response and assign the values to the appropriate properties on the <paramref name="message"/>.
|
||||
/// </summary>
|
||||
/// <param name="data">The first line of the HTTP message to be parsed.</param>
|
||||
/// <param name="message">Either a <see cref="System.Net.Http.HttpResponseMessage"/> or <see cref="System.Net.Http.HttpRequestMessage"/> to assign the parsed values to.</param>
|
||||
/// <param name="message">Either a <see cref="HttpResponseMessage"/> or <see cref="HttpRequestMessage"/> to assign the parsed values to.</param>
|
||||
protected override void ParseStatusLine(string data, HttpResponseMessage message)
|
||||
{
|
||||
if (data == null) throw new ArgumentNullException(nameof(data));
|
||||
|
||||
Reference in New Issue
Block a user