Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit da747ae

Browse files
committed
Update HttpRequestConfig.cs
1 parent 5dda58d commit da747ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ServiceStack.Text/HttpRequestConfig.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ public class HttpRequestConfig
1919
public void SetAuthBasic(string name, string value) =>
2020
Authorization = new("Basic", Convert.ToBase64String(Encoding.UTF8.GetBytes(name + ":" + value)));
2121
public void SetRange(long from, long? to = null) => Range = new(from, to);
22+
23+
public void AddHeader(string name, string value) => Headers.Add(new(name, value));
2224
}
2325

2426
public record NameValue

0 commit comments

Comments
 (0)