略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: EventHttpConnection

2024-12-22

The EventHttpConnection class

(PECL event >= 1.4.0-beta)

简介

Represents an HTTP connection.

类摘要

class EventHttpConnection {
/* 方法 */
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
}

目录

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/class.eventhttpconnection.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3