rename fromstring to parse
MODIFY
WalletWasabi/Extensions/HttpRequestMessageExtensions.cs
WalletWasabi/Extensions/HttpRequestMessageExtensions.cs
@@ -32,7 +32,7 @@ namespace System.Net.Http
string startLine = await HttpMessageHelper.ReadStartLineAsync(requestStream, ctsToken).ConfigureAwait(false);
- var requestLine = RequestLine.FromString(startLine);
+ var requestLine = RequestLine.Parse(startLine);
var request = new HttpRequestMessage(requestLine.Method, requestLine.URI);
string headers = await HttpMessageHelper.ReadHeadersAsync(requestStream, ctsToken).ConfigureAwait(false);

MODIFY
WalletWasabi/Extensions/HttpResponseMessageExtensions.cs
WalletWasabi/Extensions/HttpResponseMessageExtensions.cs
@@ -32,7 +32,7 @@ namespace System.Net.Http
string startLine = await HttpMessageHelper.ReadStartLineAsync(responseStream).ConfigureAwait(false);
- var statusLine = StatusLine.FromString(startLine);
+ var statusLine = StatusLine.Parse(startLine);
var response = new HttpResponseMessage(statusLine.StatusCode);
string headers = await HttpMessageHelper.ReadHeadersAsync(responseStream).ConfigureAwait(false);

MODIFY
WalletWasabi/Http/Models/RequestLine.cs
WalletWasabi/Http/Models/RequestLine.cs
@@ -31,7 +31,7 @@ namespace WalletWasabi.Http.Models
return $"{Method.Method}{SP}{URI.AbsolutePath}{URI.Query}{SP}{Protocol}{CRLF}";
}
- public static RequestLine FromString(string requestLineString)
+ public static RequestLine Parse(string requestLineString)
{
try
{

MODIFY
WalletWasabi/Http/Models/StatusLine.cs
WalletWasabi/Http/Models/StatusLine.cs
@@ -21,7 +21,7 @@ namespace WalletWasabi.Http.Models
return $"{Protocol}{SP}{(int)StatusCode}{SP}{StatusCode.ToReasonString()}{CRLF}";
}
- public static StatusLine FromString(string statusLineString)
+ public static StatusLine Parse(string statusLineString)
{
try
{

rename fromstring to parse