MediaWiki REL1_40
MediaWiki\Http\MwHttpRequestToResponseInterfaceAdapter Class Reference

Inherits ResponseInterface.

Collaboration diagram for MediaWiki\Http\MwHttpRequestToResponseInterfaceAdapter:

Public Member Functions

 __construct (MWHttpRequest $mwHttpRequest)
 
 getBody ()
 
 getHeader ( $name)
 
 getHeaderLine ( $name)
 
 getHeaders ()
 
 getProtocolVersion ()
 
 getReasonPhrase ()
 
 getStatusCode ()
 
 hasHeader ( $name)
 
 withAddedHeader ( $name, $value)
 
 withBody (StreamInterface $body)
 
 withHeader ( $name, $value)
 
 withoutHeader ( $name)
 
 withProtocolVersion ( $version)
 
 withStatus ( $code, $reasonPhrase='')
 

Detailed Description

Since
1.36
Stability: unstable
Note
GPL-2.0-or-later

Definition at line 18 of file MwHttpRequestToResponseInterfaceAdapter.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Http\MwHttpRequestToResponseInterfaceAdapter::__construct ( MWHttpRequest $mwHttpRequest)
Parameters
MWHttpRequest$mwHttpRequestthe MWHttpRequest must contain response information, i.e. must have been executed

Definition at line 29 of file MwHttpRequestToResponseInterfaceAdapter.php.

Member Function Documentation

◆ getBody()

MediaWiki\Http\MwHttpRequestToResponseInterfaceAdapter::getBody ( )

Definition at line 75 of file MwHttpRequestToResponseInterfaceAdapter.php.

◆ getHeader()

MediaWiki\Http\MwHttpRequestToResponseInterfaceAdapter::getHeader ( $name)

Definition at line 53 of file MwHttpRequestToResponseInterfaceAdapter.php.

◆ getHeaderLine()

MediaWiki\Http\MwHttpRequestToResponseInterfaceAdapter::getHeaderLine ( $name)

Definition at line 57 of file MwHttpRequestToResponseInterfaceAdapter.php.

◆ getHeaders()

MediaWiki\Http\MwHttpRequestToResponseInterfaceAdapter::getHeaders ( )

Definition at line 45 of file MwHttpRequestToResponseInterfaceAdapter.php.

◆ getProtocolVersion()

MediaWiki\Http\MwHttpRequestToResponseInterfaceAdapter::getProtocolVersion ( )

Definition at line 34 of file MwHttpRequestToResponseInterfaceAdapter.php.

◆ getReasonPhrase()

MediaWiki\Http\MwHttpRequestToResponseInterfaceAdapter::getReasonPhrase ( )

Definition at line 91 of file MwHttpRequestToResponseInterfaceAdapter.php.

◆ getStatusCode()

MediaWiki\Http\MwHttpRequestToResponseInterfaceAdapter::getStatusCode ( )

Definition at line 83 of file MwHttpRequestToResponseInterfaceAdapter.php.

◆ hasHeader()

MediaWiki\Http\MwHttpRequestToResponseInterfaceAdapter::hasHeader ( $name)

Definition at line 49 of file MwHttpRequestToResponseInterfaceAdapter.php.

◆ withAddedHeader()

MediaWiki\Http\MwHttpRequestToResponseInterfaceAdapter::withAddedHeader ( $name,
$value )

Definition at line 67 of file MwHttpRequestToResponseInterfaceAdapter.php.

◆ withBody()

MediaWiki\Http\MwHttpRequestToResponseInterfaceAdapter::withBody ( StreamInterface $body)

Definition at line 79 of file MwHttpRequestToResponseInterfaceAdapter.php.

◆ withHeader()

MediaWiki\Http\MwHttpRequestToResponseInterfaceAdapter::withHeader ( $name,
$value )

Definition at line 63 of file MwHttpRequestToResponseInterfaceAdapter.php.

◆ withoutHeader()

MediaWiki\Http\MwHttpRequestToResponseInterfaceAdapter::withoutHeader ( $name)

Definition at line 71 of file MwHttpRequestToResponseInterfaceAdapter.php.

◆ withProtocolVersion()

MediaWiki\Http\MwHttpRequestToResponseInterfaceAdapter::withProtocolVersion ( $version)

Definition at line 41 of file MwHttpRequestToResponseInterfaceAdapter.php.

◆ withStatus()

MediaWiki\Http\MwHttpRequestToResponseInterfaceAdapter::withStatus ( $code,
$reasonPhrase = '' )

Definition at line 87 of file MwHttpRequestToResponseInterfaceAdapter.php.


The documentation for this class was generated from the following file: