code: public String getHeader(String name)
      {
          HeaderField f = getHeaderField(name);
          if (f != null)
          {
              return f.getStringValue();
          }
          else
          {
              return null;
          }
      }
docs: Retrieve a response header field by name.