src/main/php/response/Headers.php
public function location($uri): self
    {
        return $this->add(
                'Location',
                (($uri instanceof HttpUri) ? ($uri->asStringWithNonDefaultPort()) : ($uri))
        );
    }
public function location($uri): self
    {
        return $this->add(
                'Location',
                (($uri instanceof HttpUri) ? ($uri->asStringWithNonDefaultPort()) : ($uri))
        );
    }
public function location ( $ uri ) : self { return $ this -> add ( 'Location' , ( ( $ uri instanceof HttpUri ) ? ( $ uri -> asStringWithNonDefaultPort ( ) ) : ( $ uri ) ) ) ; }
adds location header with given uri

@param   string|\stubbles\peer\http\HttpUri  $uri
@return  \stubbles\webapp\response\Headers
adds location header with given uri