The humoral response is mediated by B lymphocytes, which release antibodies specific to the infectious agent. The cell-mediated response involves the binding of cytotoxic T lymphocytes to foreign or infected cells, followed by the lysis of these cells.