client/jsonapi/src/Client/JsonApi/Base.php
public function getOptionsResponse( ServerRequestInterface $request, ResponseInterface $response, $allow )
	{
		$view = $this->getView();

		$tplconf = 'client/jsonapi/standard/template-options';
		$default = 'options-standard';

		$body = $view->render( $view->config( $tplconf, $default ) );

		return $response->withHeader( 'Allow', $allow )
			->withHeader( 'Cache-Control', 'max-age=300' )
			->withHeader( 'Content-Type', 'application/vnd.api+json' )
			->withBody( $view->response()->createStreamFromString( $body ) )
			->withStatus( 200 );
	}
public function getOptionsResponse( ServerRequestInterface $request, ResponseInterface $response, $allow )
	{
		$view = $this->getView();

		$tplconf = 'client/jsonapi/standard/template-options';
		$default = 'options-standard';

		$body = $view->render( $view->config( $tplconf, $default ) );

		return $response->withHeader( 'Allow', $allow )
			->withHeader( 'Cache-Control', 'max-age=300' )
			->withHeader( 'Content-Type', 'application/vnd.api+json' )
			->withBody( $view->response()->createStreamFromString( $body ) )
			->withStatus( 200 );
	}
public function getOptionsResponse ( ServerRequestInterface $ request , ResponseInterface $ response , $ allow ) { $ view = $ this -> getView ( ) ; $ tplconf = 'client/jsonapi/standard/template-options' ; $ default = 'options-standard' ; $ body = $ view -> render ( $ view -> config ( $ tplconf , $ default ) ) ; return $ response -> withHeader ( 'Allow' , $ allow ) -> withHeader ( 'Cache-Control' , 'max-age=300' ) -> withHeader ( 'Content-Type' , 'application/vnd.api+json' ) -> withBody ( $ view -> response ( ) -> createStreamFromString ( $ body ) ) -> withStatus ( 200 ) ; }
Returns the available REST verbs and the available parameters

@param \Psr\Http\Message\ServerRequestInterface $request Request object
@param \Psr\Http\Message\ResponseInterface $response Response object
@param string $allow Allowed HTTP methods
@return \Psr\Http\Message\ResponseInterface Modified response object
Returns the available REST verbs and the available parameters