Chuyển đến nội dung
Tài liệu

Tra cứu lớp và hàm

HTTP

Danh sách các phương thức công khai của lớp Zittme\Framework\HTTP. Tài liệu này được tạo tự động từ mã nguồn lõi Zittme.

Nguồn: common/framework/HTTP.php

Phương thức công khai

  • static function resetClient()
  • Reset the Guzzle client instance.
  • static function get(string $url, $data = null, array $headers = [], array $cookies = [], array $settings = [])
  • Make a GET request.
  • static function head(string $url, $data = null, array $headers = [], array $cookies = [], array $settings = [])
  • Make a HEAD request.
  • static function post(string $url, $data = null, array $headers = [], array $cookies = [], array $settings = [])
  • Make a POST request.
  • static function download(string $url, string $target_filename, string $method = 'GET', $data = null, array $headers = [], array $cookies = [], array $settings = [])
  • Download a file.
  • static function request(string $url, string $method = 'GET', $data = null, array $headers = [], array $cookies = [], array $settings = [])
  • Make any type of request.
  • static function async(string $url, string $method = 'GET', $data = null, array $headers = [], array $cookies = [], array $settings = [])
  • Make any type of request asynchronously.
  • static function multiple(array $requests)
  • Make multiple concurrent requests.