Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter Class Reference
+ Inheritance diagram for Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter:
+ Collaboration diagram for Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter:

Public Member Functions

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

Private Member Functions

 throwExceptionForBuilderMethod (string $method)
 
 validateHasResponse (MWHttpRequest $mwHttpRequest)
 

Private Attributes

 $mwHttpRequest
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ getBody()

Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter::getBody ( )

◆ getHeader()

Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter::getHeader (   $name)

◆ getHeaderLine()

Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter::getHeaderLine (   $name)

◆ getHeaders()

Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter::getHeaders ( )

◆ getProtocolVersion()

Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter::getProtocolVersion ( )

◆ getReasonPhrase()

Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter::getReasonPhrase ( )

◆ getStatusCode()

Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter::getStatusCode ( )

◆ hasHeader()

Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter::hasHeader (   $name)

◆ throwExceptionForBuilderMethod()

Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter::throwExceptionForBuilderMethod ( string  $method)
private

◆ validateHasResponse()

Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter::validateHasResponse ( MWHttpRequest  $mwHttpRequest)
private

◆ withAddedHeader()

Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter::withAddedHeader (   $name,
  $value 
)

◆ withBody()

Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter::withBody ( StreamInterface  $body)

◆ withHeader()

Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter::withHeader (   $name,
  $value 
)

◆ withoutHeader()

Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter::withoutHeader (   $name)

◆ withProtocolVersion()

Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter::withProtocolVersion (   $version)

◆ withStatus()

Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter::withStatus (   $code,
  $reasonPhrase = '' 
)

Member Data Documentation

◆ $mwHttpRequest

Wikibase\Repo\FederatedProperties\MwHttpRequestToResponseInterfaceAdapter::$mwHttpRequest
private

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