Guzzle PHP v5 Documentationasynchronous requests using the same interface. - Uses PSR-7 interfaces for requests, responses, and streams. This allows you to utilize other PSR-7 compatible libraries with Guzzle. - Abstracts away the sink ○ ssl_key ○ stream ○ synchronous verify. ◦ timeout ○ version • Guzzle and PSR-7 o Headers ■ Accessing Headers ■ Complex Headers ○ Body. ○ Requests ■ Request Methods ■ the sendAsync() and requestAsync() methods of a client: use GuzzleHttp\Psr7\Request; // Create a PSR-7 request object to send $headers = ['X-Foo' => 'Bar'); $body = 'Hello!';0 码力 | 62 页 | 309.78 KB | 1 年前3
Guzzle PHP 7.0 Documentationasynchronous requests using the same interface. - Uses PSR-7 interfaces for requests, responses, and streams. This allows you to utilize other PSR-7 compatible libraries with Guzzle. - Abstracts away the sink ○ ssl_key ○ stream o synchronous o verify. ◦ timeout ○ version • Guzzle and PSR-7 o Headers ■ Accessing Headers ■ Complex Headers o Body. Requests ■ Request Methods ■ Request the sendAsync() and requestAsync() methods of a client: use GuzzleHttp\Psr7\Request; // Create a PSR-7 request object to send $headers = ['X-Foo' => 'Bar'); $body = 'Hello!';0 码力 | 64 页 | 310.93 KB | 1 年前3
Guzzle PHP 6.5 Documentation1.3.27 synchronous 28 1.3.28 verify 28 1.3.29 timeout 29 1.3.30 version 30 1.4 Guzzle and PSR-7 30 1.4.1 Headers 31 1.4.2 Body 32 1.4.3 Requests 32 1.4.4 Responses 34 1.4.5 Streams 34 asynchronous requests using the same interface. • Uses PSR-7 interfaces for requests, responses, and streams. This allows you to utilize other PSR-7 compatible libraries with Guzzle. • Abstracts away the the sendAsync() and requestAsync() methods of a client: use GuzzleHttp\Psr7\Request; // Create a PSR-7 request object to send $headers = ['X-Foo' => 'Bar'); $body = 'Hello!';0 码力 | 50 页 | 237.04 KB | 1 年前3
Guzzle PHP 6.5 Documentationasynchronous requests using the same interface. - Uses PSR-7 interfaces for requests, responses, and streams. This allows you to utilize other PSR-7 compatible libraries with Guzzle. - Abstracts away the sink ○ ssl_key. ○ stream o synchronous o verify. ◦ timeout ○ version • Guzzle and PSR-7 o Headers ■ Accessing Headers ■ Complex Headers ○ Body. ○ Requests ■ Request Methods ■ the sendAsync() and requestAsync() methods of a client: use GuzzleHttp\Psr7\Request; // Create a PSR-7 request object to send $headers = ['X-Foo' => 'Bar'); $body = 'Hello!';0 码力 | 65 页 | 311.42 KB | 1 年前3
Guzzle PHP 7.0 Documentation1.3.27 synchronous 28 1.3.28 verify 28 1.3.29 timeout 29 1.3.30 version 29 1.4 Guzzle and PSR-7 30 1.4.1 Headers 30 1.4.2 Body 31 1.4.3 Requests 32 1.4.4 Responses 33 1.4.5 Streams 34 asynchronous requests using the same interface. • Uses PSR-7 interfaces for requests, responses, and streams. This allows you to utilize other PSR-7 compatible libraries with Guzzle. • Abstracts away the the sendAsync() and requestAsync() methods of a client: use GuzzleHttp\Psr7\Request; // Create a PSR-7 request object to send $headers = ['X-Foo' => 'Bar'); $body = 'Hello!';0 码力 | 50 页 | 235.39 KB | 1 年前3
Guzzle PHP v5 Documentation1.3.26 synchronous 27 1.3.27 verify 27 1.3.28 timeout 28 1.3.29 version 28 1.4 Guzzle and PSR-7 29 1.4.1 Headers 29 1.4.2 Body 30 1.4.3 Requests 31 1.4.4 Responses 32 1.4.5 Streams 33 asynchronous requests using the same interface. • Uses PSR-7 interfaces for requests, responses, and streams. This allows you to utilize other PSR-7 compatible libraries with Guzzle. • Abstracts away the the sendAsync() and requestAsync() methods of a client: use GuzzleHttp\Psr7\Request; // Create a PSR-7 request object to send $headers = ['X-Foo' => 'Bar'); $body = 'Hello!';0 码力 | 49 页 | 231.08 KB | 1 年前3
CakePHP Cookbook 3.x
APIs ■ Testing Actions Protected by CsrfComponent or SecurityComponent ■ Integration Testing PSR-7 Middleware ■ Testing with Encrypted Cookies ■ Testing Flash Messages ■ Testing a JSON Responding Your application’s middleware is initialized. 4. A request and response is dispatched through the PSR-7 Middleware that your application uses. Typically this includes error trapping and routing. 5. If deprecated, and superseded by methods that follow the immutable object patterns described in the PSR-7 standard. Several properties on Cake\Network\Request have been deprecated: • Request::$params is0 码力 | 1244 页 | 1.05 MB | 2 年前3
CakePHP Cookbook 3.x
Your application’s middleware is initialized. 4. A request and response is dispatched through the PSR-7 Middleware that your application uses. Typically this includes error trapping and routing. 5. If deprecated, and superseded by methods that follow the immutable object patterns described in the PSR-7 standard. Several properties on Cake\Network\Request have been deprecated: • Request::$params is on Cake\Network\Response have been deprecated because they either overlap the PSR-7 methods, or are made obsolete by the PSR-7 stack: • Response::header() is deprecated. Use getHeaderLine(), hasHeader()0 码力 | 967 页 | 2.80 MB | 2 年前3
Laravel 5.1 中文文档post')){ // } ### 1.2 PSR-7 请求 PSR-7 标准指定了 HTTP 消息接口,包括请求和响应。如果你想要获取 PSR-7 请求实例,首先需要安装一些库,Laravel 使用 Symfony HTTP Message Bridge 组件将典型的 Laravel 请求和响应转化为 PSR-7 兼容的实现: composer require symfon 安装完这些库之后,你只需要在路由或控制器中通过对请求类型进行类型提示就可以获取PSR-7请求: use Psr\Http\Message\ServerRequestInterface; Route::get('/', function (ServerRequestInterface $request) { // }); 如果从路由或控制器返回的是 PSR-7 响应实例,则其将会自动转化为 Laravel0 码力 | 307 页 | 3.46 MB | 2 年前3
CakePHP Cookbook Documentation 5.x■ Testing Actions Protected by CsrfComponent or SecurityComponent ■ Integration Testing PSR-7 Middleware ■ Testing with Encrypted Cookies ■ Testing Flash Messages ■ Testing a Your application’s middleware is initialized. 4. A request and response is dispatched through the PSR-7 Middleware that your application uses. Typically this includes error trapping and routing. 5. If indexes and object properties. CakePHP’s request object implements the PSR-7 ServerRequestInterface [https://www.php-fig.org/psr/psr-7/] making it easier to use libraries from outside of CakePHP. ## Request0 码力 | 1080 页 | 939.39 KB | 2 年前3
共 18 条
- 1
- 2
相关搜索词
GuzzleHTTP clientPSR-7Synchronous/asynchronous requestsMiddleware system异步请求请求处理中间件PHPrequestresponse同步和异步请求PSR-7接口中间件系统环境无关性PHP 7.0Request optionsException handlingResponseStreamHandlerMiddlewareClientModelViewControllerORMDatabaseMigrationConventionsInstallation迁移指南CakePHP 3.xAPI命令行工具验证Laravel 5.1PSR-2缓存事件广播中间件参数CakePHP 5Conventions Over ConfigurationModel LayerStandalone PackagesBreaking Changes













