Http.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. declare(strict_types=1);
  3. namespace catcher\facade;
  4. use think\Facade;
  5. /**
  6. * @method static \catcher\library\client\Http headers(array $headers)
  7. * @method static \catcher\library\client\Http body($body)
  8. * @method static \catcher\library\client\Http json(array $data)
  9. * @method static \catcher\library\client\Http query(array $query)
  10. * @method static \catcher\library\client\Http form(array $params)
  11. * @method static \catcher\library\client\Http timeout($timeout)
  12. * @method static \catcher\library\client\Http get(string $url)
  13. * @method static \catcher\library\client\Http post(string $url)
  14. * @method static \catcher\library\client\Http put(string $url)
  15. * @method static \catcher\library\client\Http delete(string $url)
  16. * @method static \catcher\library\client\Http token(string $token)
  17. * @method static \catcher\library\client\Http ignoreSsl()
  18. * @method static \catcher\library\client\Http attach($name, $resource, $filename)
  19. *
  20. * @time 2020年05月22日
  21. */
  22. class Http extends Facade
  23. {
  24. protected static $alwaysNewInstance = true;
  25. protected static function getFacadeClass()
  26. {
  27. return \catcher\library\client\Http::class;
  28. }
  29. }