public void ShouldAddSingle() { var headers = new FluentHttpHeaders(); headers.Add(HeaderTypes.Authorization, "the-xx"); Assert.Equal("the-xx", headers.Authorization); }
public void ShouldAddEnumerable() { var headers = new FluentHttpHeaders(); headers.Add(HeaderTypes.Accept, new[] { "json", "msgpack" }); Assert.Equal("json,msgpack", headers.Accept); }
public void ShouldAddWithStringValues() { var headers = new FluentHttpHeaders(); StringValues str = new[] { "the-xx", "supersecret" }; headers.Add(HeaderTypes.Authorization, str); Assert.Equal("the-xx,supersecret", headers.Authorization); }