The documentation you are viewing is for an older version of this component.
Switch to the latest (v4) version.
Install dotkernel/dot-response-header by executing the following Composer command in your project directory:
composer require dotkernel/dot-response-header