コード例 #1
0
        internal HttpContentLengthField(byte[] fieldValue)
            :base(FieldName, fieldValue)
        {
            HttpParser parser = new HttpParser(fieldValue);
            uint? contentLength;
            parser.DecimalNumber(out contentLength);
            if (!parser.Success)
                return;

            ContentLength = contentLength;
        }
コード例 #2
0
        internal HttpContentLengthField(byte[] fieldValue)
            : base("Content-Length", (IList <byte>)fieldValue)
        {
            HttpParser httpParser = new HttpParser(fieldValue);
            uint?      number;

            httpParser.DecimalNumber(out number);
            if (!httpParser.Success)
            {
                return;
            }
            this.ContentLength = number;
        }
コード例 #3
0
        internal HttpContentLengthField(byte[] fieldValue)
            : base(FieldName, fieldValue)
        {
            HttpParser parser = new HttpParser(fieldValue);
            uint?      contentLength;

            parser.DecimalNumber(out contentLength);
            if (!parser.Success)
            {
                return;
            }

            ContentLength = contentLength;
        }