Back to PreloadManagerInterface class

Method preconnect

public void
preconnect
(string $uri, array $attributes = [])
Initiates an early connection to a resource (DNS resolution, TCP handshake, TLS negotiation).
Parameters
  • string $uri A public path
  • array $attributes The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
Returns
  • void
Since
  • 4.0.0

Method preconnect - Source code

/**
 * Initiates an early connection to a resource (DNS resolution, TCP handshake, TLS negotiation).
 *
 * @param   string  $uri         A public path
 * @param   array   $attributes  The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
 *
 * @return  void
 *
 * @since   4.0.0
 */
public function preconnect(string $uri, array $attributes = []);