AddSpecialsFrom() 개인적인 메소드

private AddSpecialsFrom ( HttpGeneralHeaders sourceHeaders ) : void
sourceHeaders HttpGeneralHeaders
리턴 void
예제 #1
0
        internal override void AddHeaders(HttpHeaders sourceHeaders)
        {
            base.AddHeaders(sourceHeaders);
            HttpResponseHeaders sourceResponseHeaders = sourceHeaders as HttpResponseHeaders;

            Debug.Assert(sourceResponseHeaders != null);

            // Copy special values, but do not overwrite
            _generalHeaders.AddSpecialsFrom(sourceResponseHeaders._generalHeaders);
        }
예제 #2
0
        internal override void AddHeaders(HttpHeaders sourceHeaders)
        {
            base.AddHeaders(sourceHeaders);
            HttpRequestHeaders sourceRequestHeaders = sourceHeaders as HttpRequestHeaders;

            Contract.Assert(sourceRequestHeaders != null);

            // Copy special values, but do not overwrite
            generalHeaders.AddSpecialsFrom(sourceRequestHeaders.generalHeaders);

            bool?expectContinue = ExpectContinue;

            if (!expectContinue.HasValue)
            {
                ExpectContinue = sourceRequestHeaders.ExpectContinue;
            }
        }