You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: httprequest.rb
    path of file: ./repos/artichoke/artichoke-backend/vendor/ruby/tool/lib/webrick
    
    the code of the file until where you have to start completion: # frozen_string_literal: false
#
# httprequest.rb -- HTTPRequest Class
#
# Author: 
    
    def read_header(socket)
      if socket
        while line = read_line(socket)
          break if /\A(#{CRLF}|#{LF})\z/om =~ line
          if (@request_bytes += line.bytesize) > MAX_HEADER_LENGTH
            raise HTTPStatus::RequestEntityTooLarge, 'headers too large'
          end