WordPress\AiClientDependencies\Psr\Http\Message
RequestInterface::withMethod
Return an instance with the provided HTTP method.
While HTTP method names are typically all uppercase characters, HTTP method names are case-sensitive and thus implementations SHOULD NOT modify the given string.
This method MUST be implemented in such a way as to retain the immutability of the message, and MUST return an instance that has the changed request method.
Method of the class: RequestInterface{}
No Hooks.
Returns
static.
Usage
$RequestInterface = new RequestInterface(); $RequestInterface->withMethod( $method ): RequestInterface;
- $method(string) (required)
- Case-sensitive method.
RequestInterface::withMethod() RequestInterface::withMethod code WP 7.0
public function withMethod(string $method): RequestInterface;