You are here

public function HttpStreamWrapper::setUri in Remote Stream Wrapper 8

Sets the absolute stream resource URI.

This allows you to set the URI. Generally is only called by the factory method.

Parameters

string $uri: A string containing the URI that should be used for this instance.

Overrides StreamWrapperInterface::setUri

2 calls to HttpStreamWrapper::setUri()
HttpStreamWrapper::stream_open in src/StreamWrapper/HttpStreamWrapper.php
HttpStreamWrapper::url_stat in src/StreamWrapper/HttpStreamWrapper.php

File

src/StreamWrapper/HttpStreamWrapper.php, line 60

Class

HttpStreamWrapper
HTTP(s) stream wrapper.

Namespace

Drupal\remote_stream_wrapper\StreamWrapper

Code

public function setUri($uri) {
  $this->uri = $uri;
}