http: add referrer

This commit is contained in:
uwaa 2024-12-15 08:02:08 +00:00
parent a23a7b8516
commit 8932c05860

View file

@ -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);