internal HttpContentLengthField(byte[] fieldValue) :base(FieldName, fieldValue) { HttpParser parser = new HttpParser(fieldValue); uint? contentLength; parser.DecimalNumber(out contentLength); if (!parser.Success) return; ContentLength = contentLength; }
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; }
internal HttpContentLengthField(byte[] fieldValue) : base(FieldName, fieldValue) { HttpParser parser = new HttpParser(fieldValue); uint? contentLength; parser.DecimalNumber(out contentLength); if (!parser.Success) { return; } ContentLength = contentLength; }