Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

ResponseFactoryInterface.php

Namespace

Psr\Http\Message

File

vendor/psr/http-factory/src/ResponseFactoryInterface.php

View source
<?php

namespace Psr\Http\Message;

interface ResponseFactoryInterface {
    
    /**
     * Create a new response.
     *
     * @param int $code HTTP status code; defaults to 200
     * @param string $reasonPhrase Reason phrase to associate with status code
     *     in generated response; if none is provided implementations MAY use
     *     the defaults as suggested in the HTTP specification.
     *
     * @return ResponseInterface
     */
    public function createResponse(int $code = 200, string $reasonPhrase = '') : ResponseInterface;

}

Interfaces

Title Deprecated Summary
ResponseFactoryInterface

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal