+
+ /**
+ * {@inheritDoc}
+ */
+ public function generate(): ResponseInterface
+ {
+ // Setting the response type as an X-header for direct usage
+ $this->headers[static::X_HEADER] = $this->type;
+
+ return new \GuzzleHttp\Psr7\Response(200, $this->headers, $this->content);
+ }