The EventHttpConnection class

From Get docs
Php/docs/latest/class.eventhttpconnection /
Revision as of 10:12, 3 January 2022 by Notes (talk | contribs) (Page commit)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


The EventHttpConnection class

Introduction

(PECL event >= 1.4.0-beta)

Represents an HTTP connection.

Class synopsis

class EventHttpConnection {

/* Methods */

public __construct(
  EventBase $base ,
  EventDnsBase $dns_base ,
  string $address ,
  int $port ,
  EventSslContext $ctx  = null 
)
public getBase(): EventBase
public getPeer( string &$address ,  int &$port ): void
public makeRequest( EventHttpRequest $req ,  int $type ,  string $uri ): bool
public setCloseCallback( callable $callback ,  mixed $data  = ?): void
public setLocalAddress( string $address ): void
public setLocalPort( int $port ): void
public setMaxBodySize( string $max_size ): void
public setMaxHeadersSize( string $max_size ): void
public setRetries( int $retries ): void
public setTimeout( int $timeout ): void

}

Table of Contents


© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.eventhttpconnection.php