http: add referrer
This commit is contained in:
parent
a23a7b8516
commit
8932c05860
1 changed files with 10 additions and 0 deletions
|
@ -25,6 +25,8 @@ public record HttpFields
|
|||
|
||||
public string? Location { get; set; }
|
||||
|
||||
public string? Referrer { get; set; }
|
||||
|
||||
public int? ContentLength { get; set; }
|
||||
|
||||
public MIMEType? ContentType { get; set; }
|
||||
|
@ -86,6 +88,11 @@ public record HttpFields
|
|||
Location = value;
|
||||
return;
|
||||
|
||||
case "referer":
|
||||
case "referrer":
|
||||
Referrer = value;
|
||||
return;
|
||||
|
||||
case "content-length":
|
||||
{
|
||||
if (value == null)
|
||||
|
@ -153,6 +160,9 @@ public record HttpFields
|
|||
if (Location != null)
|
||||
callback("Location", Location);
|
||||
|
||||
if (Referrer != null)
|
||||
callback("Referer", Referrer);
|
||||
|
||||
if (WebSocketKey != null)
|
||||
callback("Sec-WebSocket-Key", WebSocketKey);
|
||||
|
||||
|
|
Loading…
Reference in a new issue