CakePHP Cookbook 2.x
with. Provide environment introspection pertaining to the request. Things like the headers sent, the client’s IP address, and the subdomain/domain information about the application the server is running on '/iPhone/i') ); // Add an option detector. $this->request->addDetector('internalIp', array( 'env' => 'CLIENT_IP', 'options' => array('192.168.0.101', '192.168.0.100') )); // Add a callback detector. Can request for more information. CakeRequest::accepts($type = null) Find out which content types the client accepts, or check whether it accepts a particular type of content. Get all types: $this->request->accepts();0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
• Provide environment introspection pertaining to the request. Things like the headers sent, the client’s IP address, and the subdomain/domain information about the application the server is running on '/iPhone/i') ); // Add an option detector. $this->request->addDetector('internalIp', array( 'env' => 'CLIENT_IP', 'options' => array('192.168.0.101', '192.168.0.100') )); // Add a callback detector. Can either request for more information. CakeRequest::accepts($type = null) Find out which content types the client accepts, or check whether it accepts a particular type of content. Get all types: $this->request->accepts();0 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP Cookbook 4.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 807 Mocking HTTP Client Responses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 807 Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 861 34 Http Client 877 Doing Requests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . is missing is now null and not false. • Cake\Http\Client\Request::body() has been removed. Use getBody() or withBody() instead. • Cake\Http\Client\Response::isOk() now returns true for all 2xx and 3xx0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 4.x
Comparing test results to a file Console Integration Testing Mocking Injected Dependencies Mocking HTTP Client Responses Testing Views Testing Components Testing Helpers Testing Events Testing Email Creating File API File Hash Hash Hash Path Syntax Expression Types Attribute Matching Types Http Client Client Doing Requests Creating Multipart Requests with Files Building Multipart Request Bodies Sending parameter is missing is now null and not false. Cake\Http\Client\Request::body() has been removed. Use getBody() or withBody() instead. Cake\Http\Client\Response::isOk() now returns true for all 2xx and 3xx0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 871 34 Http Client 887 Doing Requests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ‘previous’ navigation in your pagination controls this class can be a good solution. Http • Cake\Http\Client\Response::isSuccess() was backported from 4.0 • Cake\Http\Middleware\CspMiddleware was backported Cake\Http\Client\Response::$headers is deprecated. Use getHeaders() or getHeaderLine() in- stead. • Cake\Http\Client\Response::$body is deprecated. Use getStringBody() instead. • Cake\Http\Client\Response::$json0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 3.x
Usage Folder API File API Hash Hash Path Syntax Expression Types Attribute Matching Types Http Client Doing Requests Creating Multipart Requests with Files Building Multipart Request Bodies by Hand ‘previous’ navigation in your pagination controls this class can be a good solution. Http Cake\Http\Client\Response::isSuccess() was backported from 4.0 Cake\Http\Middleware\CspMiddleware was backported from Cake\Http\Client\Response::$headers is deprecated. Use getHeaders() or getHeaderLine() instead. Cake\Http\Client\Response::$body is deprecated. Use getStringBody() instead. Cake\Http\Client\Response::$json0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook Documentation 5.x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 703 Mocking HTTP Client Responses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 703 Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 749 vi 34 Http Client 765 Doing Requests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x Http • Added support for PSR-1735 factories interface. This allows cakephp/http to provide a client implementation to libraries that allow automatic interface resolution like php-http. • Added Co0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook Documentation 5.xComparing test results to a file Console Integration Testing Mocking Injected Dependencies Mocking HTTP Client Responses Testing Views Testing Components Testing Helpers Testing Events Testing Email Creating Cloning Collections Hash Hash Hash Path Syntax Expression Types Attribute Matching Types Http Client Client Doing Requests Creating Multipart Requests with Files Building Multipart Request Bodies Sending [https://www.php-fig.org/psr/psr-17/] factories interface. This allows cakephp/http to provide a client implementation to libraries that allow automatic interface resolution like php-http. Added Cooki0 码力 | 1080 页 | 939.39 KB | 1 年前3
共 8 条
- 1













