function addProcessResponseMethod() {

        $methodGenerator = new MethodGenerator('processResponse');

        $body = '';
        $body .= $this->generateResponseFragment();

        $docBlock = $this->generateExecuteDocBlock('Dispatch the request for this operation and process the response. Allows you to modify the request before it is sent.');

        $methodGenerator->setDocBlock($docBlock);
        $methodGenerator->setBody($body);

        $parameters = [];
        $parameters[] = new ParameterGenerator('response', 'Amp\Artax\Response');
        $methodGenerator->setParameters($parameters);
        $tag = createParamTag($parameters[0], 'The HTTP response.');
        $docBlock->setTag($tag);

        $this->classGenerator->addMethodFromGenerator($methodGenerator);
    }