略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Swoole\Http\Client

2024-11-15

The Swoole\Http\Client class

(PECL swoole >= 1.9.0)

简介

类摘要

class Swoole\Http\Client {
/* 属性 */
public $errCode;
public $sock;
/* 方法 */
public addFile(
    string $path,
    string $name,
    string $type = ?,
    string $filename = ?,
    string $offset = ?
): void
public close(): void
public __destruct(): void
public download(
    string $path,
    string $file,
    callable $callback,
    int $offset = ?
): void
public execute(string $path, string $callback): void
public get(string $path, callable $callback): void
public isConnected(): bool
public on(string $event_name, callable $callback): void
public post(string $path, string $data, callable $callback): void
public push(string $data, string $opcode = ?, string $finish = ?): void
public set(array $settings): void
public setCookies(array $cookies): void
public setData(string $data): ReturnType
public setHeaders(array $headers): void
public setMethod(string $method): void
public upgrade(string $path, string $callback): void
}

属性

errCode

sock

目录

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/class.swoole-http-client.php

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