code: public void setMessage(String data) throws HttpMalformedHeaderException {
          clear();
          try {
              if (!this.parse(data)) {
                  mMalformedHeader = true;
              }
          } catch (Exception e) {
              mMalformedHeader = true;
          }
  
          if (mMalformedHeader) {
              throw new HttpMalformedHeaderException();
          }
  
      }
docs: Set and parse this HTTP header with the string given.
  
  @param data
  @throws HttpMalformedHeaderException