Esempio n. 1
0
        public void read_custom_header()
        {
            var message = new HeaderRequest
            {
                Name = "x-1"
            };

            TestHost.Scenario(_ =>
            {
                _.Get.Input(message);
                _.Request.AppendHeader("x-1", "A");

                _.ContentShouldBe("A");
            });
        }
Esempio n. 2
0
        public void read_build_in_header()
        {
            var message = new HeaderRequest
            {
                Name = HttpRequestHeaders.IfNoneMatch
            };

            TestHost.Scenario(_ =>
            {
                _.Get.Input(message);
                _.Request.AppendHeader(HttpRequestHeaders.IfNoneMatch, "A");

                _.ContentShouldBe("A");
            });
        }
        public void read_custom_header()
        {
            var message = new HeaderRequest
            {
                Name = "x-1"
            };

            TestHost.Scenario(_ =>
            {
                _.Get.Input(message);
                _.Request.AppendHeader("x-1", "A");

                _.ContentShouldBe("A");
            });
        }
        public void read_build_in_header()
        {
            var message = new HeaderRequest
            {
                Name = HttpRequestHeaders.IfNoneMatch
            };

            TestHost.Scenario(_ =>
            {
                _.Get.Input(message);
                _.Request.AppendHeader(HttpRequestHeaders.IfNoneMatch, "A");

                _.ContentShouldBe("A");
            });
        }
Esempio n. 5
0
 public string get_header_Name(HeaderRequest request)
 {
     return _headers.GetHeader(request.Name).FirstOrDefault();
 }
Esempio n. 6
0
 public string get_header_Name(HeaderRequest request)
 {
     return(_headers.GetHeader(request.Name).FirstOrDefault());
 }