code: def init_body_buffer(self, method, headers):
          
          content_length = headers.get("CONTENT-LENGTH", None)
  
          if method in (HTTPMethod.POST, HTTPMethod.PUT):
              if content_length is None:
                  raise HTTPErrorBadRequest("HTTP Method requires a CONTENT-LENGTH header")
              self.content_length = int(content_length)
              self.body_buffer = bytearray(0)
  
          elif content_length is not None:
              raise HTTPErrorBadRequest(
                  "HTTP method %s may NOT have a CONTENT-LENGTH header"
              )
docs: Sets up the body_buffer and content_length attributes based
          on method and headers.