PsrAdapter
SecureHeaders Psr HttpAdapter
Install / Use
/learn @SecureHeaders/PsrAdapterREADME
SecureHeaders PSR-7 Adapter

A PSR-7 adapter for SecureHeaders. For more information on adapters, see Framework Integration in the SecureHeaders Wiki.
Installation
composer require secureheaders/psradapter
Usage
Assuming you already have a PSR-7 response object (e.g. returned from a previous middleware) in the $response variable:
// Configure SecureHeaders
$headers = new Aidantwoods\SecureHeaders\SecureHeaders;
$headers->strictMode();
// Instantiate the adapter with your response object
$adapter = new SecureHeaders\PsrHttpAdapter\Psr7Adapter($response);
// Apply your SecureHeaders configuration
$headers->apply($adapter);
// And finally retrieve the updated HTTP response object
$response = $adapter->getSecuredResponse();
Related Skills
node-connect
340.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.1kCommit, push, and open a PR
