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

Breadcrumb

  1. Drupal Core 11.1.x
  2. RequestInterface.php

function RequestInterface::withRequestTarget

Return an instance with the specific request-target.

If the request needs a non-origin-form request-target — e.g., for specifying an absolute-form, authority-form, or asterisk-form — this method may be used to create an instance with the specified request-target, verbatim.

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 target.

@link http://tools.ietf.org/html/rfc7230#section-5.3 (for the various request-target forms allowed in request messages)

Parameters

string $requestTarget:

Return value

static

1 method overrides RequestInterface::withRequestTarget()
Request::withRequestTarget in vendor/guzzlehttp/psr7/src/Request.php
Return an instance with the specific request-target.

File

vendor/psr/http-message/src/RequestInterface.php, line 61

Class

RequestInterface
Representation of an outgoing, client-side request.

Namespace

Psr\Http\Message

Code

public function withRequestTarget(string $requestTarget) : RequestInterface;

API Navigation

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