[Modify] Rename it

This commit is contained in:
sta 2020-07-21 19:43:05 +09:00
parent e950b9ca06
commit 4d01d325ec
2 changed files with 8 additions and 8 deletions

View File

@ -69,6 +69,12 @@ namespace WebSocketSharp.Net
#region Public Properties #region Public Properties
public string HeaderName {
get {
return _headerName;
}
}
public bool IsRequest { public bool IsRequest {
get { get {
return (_headerType & HttpHeaderType.Request) == HttpHeaderType.Request; return (_headerType & HttpHeaderType.Request) == HttpHeaderType.Request;
@ -81,12 +87,6 @@ namespace WebSocketSharp.Net
} }
} }
public string Name {
get {
return _headerName;
}
}
public HttpHeaderType Type { public HttpHeaderType Type {
get { get {
return _headerType; return _headerType;

View File

@ -868,7 +868,7 @@ namespace WebSocketSharp.Net
var comparison = StringComparison.InvariantCultureIgnoreCase; var comparison = StringComparison.InvariantCultureIgnoreCase;
foreach (var headerInfo in _headers.Values) { foreach (var headerInfo in _headers.Values) {
if (headerInfo.Name.Equals (name, comparison)) if (headerInfo.HeaderName.Equals (name, comparison))
return headerInfo; return headerInfo;
} }
@ -880,7 +880,7 @@ namespace WebSocketSharp.Net
HttpHeaderInfo headerInfo; HttpHeaderInfo headerInfo;
return _headers.TryGetValue (key, out headerInfo) return _headers.TryGetValue (key, out headerInfo)
? headerInfo.Name ? headerInfo.HeaderName
: null; : null;
} }