 HTTP & AJAX06.HTTP & AJAX 19 décembre 2023 Développement web il3 HTTP & AJAX HE-Arc (DGR) 2022 HyperText Transfer Protocol • Protocole application : invention www en 1990 (v0.9) – Connexion, GET, réponse, fermeture • HTTP 1.0 (1996) – Entêtes de requête (Host, Referer, User-Agent, …) et réponse (Content-Type, Set- Cookie, Location, …) • HTTP 1.1 (1997) – Nouveaux entêtes (Keep-alive, pipelining, cache Host obligatoire • HTTP 2.01 (2015) – Binaire, multiplexage connexions, compression entêtes, push, … – Supporté par presque tous2 les navigateurs, une majorité de serveurs • HTTP 3.03 (2019) – UDP,0 码力 | 11 页 | 91.09 KB | 1 年前3 HTTP & AJAX06.HTTP & AJAX 19 décembre 2023 Développement web il3 HTTP & AJAX HE-Arc (DGR) 2022 HyperText Transfer Protocol • Protocole application : invention www en 1990 (v0.9) – Connexion, GET, réponse, fermeture • HTTP 1.0 (1996) – Entêtes de requête (Host, Referer, User-Agent, …) et réponse (Content-Type, Set- Cookie, Location, …) • HTTP 1.1 (1997) – Nouveaux entêtes (Keep-alive, pipelining, cache Host obligatoire • HTTP 2.01 (2015) – Binaire, multiplexage connexions, compression entêtes, push, … – Supporté par presque tous2 les navigateurs, une majorité de serveurs • HTTP 3.03 (2019) – UDP,0 码力 | 11 页 | 91.09 KB | 1 年前3
 Laravel 5.6 中文文档本文档由 Laravel 学院提供 Laravel 学院致力于提供优质 Laravel 中文学习资源:http://laravelacademy.org 1 一、序言 新版特性 Laravel 5.6 在 Laravel 5.5 的基础上继续进行优化,包括日志系统、单机任务调度、模型序列化优化、动态频率限制、广播频道类、API 资源控制器 生成、Eloquent 注:要使用这个新特性,必须使用 memcached 或 redis 缓存驱动作为应用默认缓存驱动。此外,所有服务器必须和同一个中心缓存服务器进行通 信。 如果你的应用运行在多个服务器上,现在可以限定只在一台机器上运行调度任务。例如,假设你有一个在每周五晚上生成新报告的调度任务,如果任 务调度器运行在三个服务器上,这个调度任务就会在三台机器上运行并生成同样的报告三次,这样很不优雅,甚至很糟糕! 要指定任 要指定任务只在一台机器上运行,可以在定义调度任务时使用 onOneServer 方法,第一台获取到任务的机器会给这个任务上一把原子级别的锁来阻 止其他服务器同时运行同一个任务: $schedule->command('report:generate') ->fridays() ->at('17:00')0 码力 | 377 页 | 14.56 MB | 1 年前3 Laravel 5.6 中文文档本文档由 Laravel 学院提供 Laravel 学院致力于提供优质 Laravel 中文学习资源:http://laravelacademy.org 1 一、序言 新版特性 Laravel 5.6 在 Laravel 5.5 的基础上继续进行优化,包括日志系统、单机任务调度、模型序列化优化、动态频率限制、广播频道类、API 资源控制器 生成、Eloquent 注:要使用这个新特性,必须使用 memcached 或 redis 缓存驱动作为应用默认缓存驱动。此外,所有服务器必须和同一个中心缓存服务器进行通 信。 如果你的应用运行在多个服务器上,现在可以限定只在一台机器上运行调度任务。例如,假设你有一个在每周五晚上生成新报告的调度任务,如果任 务调度器运行在三个服务器上,这个调度任务就会在三台机器上运行并生成同样的报告三次,这样很不优雅,甚至很糟糕! 要指定任 要指定任务只在一台机器上运行,可以在定义调度任务时使用 onOneServer 方法,第一台获取到任务的机器会给这个任务上一把原子级别的锁来阻 止其他服务器同时运行同一个任务: $schedule->command('report:generate') ->fridays() ->at('17:00')0 码力 | 377 页 | 14.56 MB | 1 年前3
 Laravel 6.0 中文文档Laravel 的发布周期将保持不变。 兼容 Laravel Vapor Laravel 6.0 提供了对 Laravel Vapor 的兼容,这是一个针对 Laravel 应用的自动扩容无服务器部署平台。Vapor 对在 AWS Lambda 上 管理 Laravel 应用以及与 SQS 队列、数据库、Redis 集群、网络、 CloudFront CDN 进行交互的复杂性进行了抽象。 中文学习资源:https://xueyuanjun.com 18 * @var string */ protected $keyType = 'string'; 邮箱验证 重新发送验证路由 HTTP 方法 影响级别:中等 为了免除潜在的 CSRF 攻击,使用 Laravel 内置邮箱验证功能通过 路由器注册的 email/resend 路由请求方法已经由 GET 更新 为 POST。 null) { // })->name('profile'); // Laravel 5.8: http://example.com/profile/active echo route('profile', ['status' => 'active']); // Laravel 6.0: http://example.com/profile?status=act ive echo route('profile'0 码力 | 1442 页 | 14.66 MB | 1 年前3 Laravel 6.0 中文文档Laravel 的发布周期将保持不变。 兼容 Laravel Vapor Laravel 6.0 提供了对 Laravel Vapor 的兼容,这是一个针对 Laravel 应用的自动扩容无服务器部署平台。Vapor 对在 AWS Lambda 上 管理 Laravel 应用以及与 SQS 队列、数据库、Redis 集群、网络、 CloudFront CDN 进行交互的复杂性进行了抽象。 中文学习资源:https://xueyuanjun.com 18 * @var string */ protected $keyType = 'string'; 邮箱验证 重新发送验证路由 HTTP 方法 影响级别:中等 为了免除潜在的 CSRF 攻击,使用 Laravel 内置邮箱验证功能通过 路由器注册的 email/resend 路由请求方法已经由 GET 更新 为 POST。 null) { // })->name('profile'); // Laravel 5.8: http://example.com/profile/active echo route('profile', ['status' => 'active']); // Laravel 6.0: http://example.com/profile?status=act ive echo route('profile'0 码力 | 1442 页 | 14.66 MB | 1 年前3
 Laravel 5.3 中文文档......................................................................................... 92 5. HTTP 层 ............................................................................................... 5.2 的基础上继续进行优化,提供了大量新功能和新特性:基于驱动的通知系统; 通过 Laravel Echo 提供强大的实时支持;通过 Laravel Passport 实现无痛的 OAuth2 服务器;通过 Laravel Scout 实现全文模型搜索;在 Laravel Elixir 中支持 Webpack;“可邮寄”的对象;明确分离 web 和 api 路由;基于闭包的控制台命令;存储上传文件的辅助函数;支持 derId); }); Laravel Echo,通过 NPM 安装的全新的 JavaScript 包,将和 Laravel 5.3 一起发布,用于为订阅频 道以及在客户端 JavaScript 应用中监听服务器端事件提供了简单、优美的 API,Echo 包含对 Pusher 和 Socket.io 的支持: Echo.channel('orders.' + orderId)0 码力 | 691 页 | 9.37 MB | 1 年前3 Laravel 5.3 中文文档......................................................................................... 92 5. HTTP 层 ............................................................................................... 5.2 的基础上继续进行优化,提供了大量新功能和新特性:基于驱动的通知系统; 通过 Laravel Echo 提供强大的实时支持;通过 Laravel Passport 实现无痛的 OAuth2 服务器;通过 Laravel Scout 实现全文模型搜索;在 Laravel Elixir 中支持 Webpack;“可邮寄”的对象;明确分离 web 和 api 路由;基于闭包的控制台命令;存储上传文件的辅助函数;支持 derId); }); Laravel Echo,通过 NPM 安装的全新的 JavaScript 包,将和 Laravel 5.3 一起发布,用于为订阅频 道以及在客户端 JavaScript 应用中监听服务器端事件提供了简单、优美的 API,Echo 包含对 Pusher 和 Socket.io 的支持: Echo.channel('orders.' + orderId)0 码力 | 691 页 | 9.37 MB | 1 年前3
 Laravel 5.2 中文文档匹配路由闭包或控制器方法中相应变量 $user,并且被类型声明 为一个 Eloquent 模型类的话,Laravel 将会自动注入该模型。 更多隐式模型绑定详情请查看 Laravel 5.2 文档 HTTP 路由模型绑定部分。 中间件组 中间件组允许你通过单个方便的键来对相关路由中间件进行分组,从而为某个路由一次指 定多个中间件。例如,在同一个应用中构建 Web UI 或 API 时这一特性很有用,你可以 应用结构采用的正是这个方法。例如,在默认 的 App\Http\Kernel.php 文件中你会看到如下内容: /** * The application's route middleware groups. * * @var array */ protected $middlewareGroups = [ 'web' => [ \App\Http\Middlewar ssion::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, \App\Http\Middleware\VerifyCsrfToken::class, ], 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel0 码力 | 377 页 | 4.56 MB | 1 年前3 Laravel 5.2 中文文档匹配路由闭包或控制器方法中相应变量 $user,并且被类型声明 为一个 Eloquent 模型类的话,Laravel 将会自动注入该模型。 更多隐式模型绑定详情请查看 Laravel 5.2 文档 HTTP 路由模型绑定部分。 中间件组 中间件组允许你通过单个方便的键来对相关路由中间件进行分组,从而为某个路由一次指 定多个中间件。例如,在同一个应用中构建 Web UI 或 API 时这一特性很有用,你可以 应用结构采用的正是这个方法。例如,在默认 的 App\Http\Kernel.php 文件中你会看到如下内容: /** * The application's route middleware groups. * * @var array */ protected $middlewareGroups = [ 'web' => [ \App\Http\Middlewar ssion::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, \App\Http\Middleware\VerifyCsrfToken::class, ], 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel0 码力 | 377 页 | 4.56 MB | 1 年前3
 Laravel 5.1 中文文档套接字被用于实现实时的,即时更新的用户接口,当服务 器上的某些数据更新后,通常一条消息将会通过 websocket 连接发送到客户端并进行处理。 为了帮助你构建这样类型的应用,Laravel 使得通过 websocket 连接广播事件变得简单可行。 广播 Laravel 事件允许你在服务端代码和客户端 JavaScript 框架之间共享相同的事件名称。 更多关于事件广播的内容请查看事件一节。 中间件参数 来接收角 色名称作为额外参数: Http\Middleware; use Closure; class RoleMiddleware { /** * 运行请求过滤器. * * @param \Illuminate\Http\Request $request * @param \Closure 创建自定义的指令。查阅扩展 Blade 文档了解详情。 测试 在 tests/TestCase.php 文件中新增 protected 属性$baseUrl: protected $baseUrl = 'http://localhost'; 翻译文件 用于为 vendor 包发布语言文件的默认目录做了移动,所有 vendor 包语言文件从 resources/lang/packages/{loc0 码力 | 307 页 | 3.46 MB | 1 年前3 Laravel 5.1 中文文档套接字被用于实现实时的,即时更新的用户接口,当服务 器上的某些数据更新后,通常一条消息将会通过 websocket 连接发送到客户端并进行处理。 为了帮助你构建这样类型的应用,Laravel 使得通过 websocket 连接广播事件变得简单可行。 广播 Laravel 事件允许你在服务端代码和客户端 JavaScript 框架之间共享相同的事件名称。 更多关于事件广播的内容请查看事件一节。 中间件参数 来接收角 色名称作为额外参数: Http\Middleware; use Closure; class RoleMiddleware { /** * 运行请求过滤器. * * @param \Illuminate\Http\Request $request * @param \Closure 创建自定义的指令。查阅扩展 Blade 文档了解详情。 测试 在 tests/TestCase.php 文件中新增 protected 属性$baseUrl: protected $baseUrl = 'http://localhost'; 翻译文件 用于为 vendor 包发布语言文件的默认目录做了移动,所有 vendor 包语言文件从 resources/lang/packages/{loc0 码力 | 307 页 | 3.46 MB | 1 年前3
 Laravel 5.0 Documentation
Introduction ii. Authenticating Users iii. Retrieving The Authenticated User iv. Protecting Routes v. HTTP Basic Authentication vi. Password Reminders & Reset vii. Social Authentication ii. Billing i. Introduction ii. Basic Usage ix. Errors & Logging i. Configuration ii. Handling Errors iii. HTTP Exceptions iv. Logging x. Events i. Basic Usage ii. Queued Event Handlers iii. Event Subscribers requests (a new type of class in Laravel 5.0) are now grouped under the app/Http directory, as they are all classes related to the HTTP transport layer of your application. Instead of a single, flat file of0 码力 | 242 页 | 1.44 MB | 1 年前3 Laravel 5.0 Documentation
Introduction ii. Authenticating Users iii. Retrieving The Authenticated User iv. Protecting Routes v. HTTP Basic Authentication vi. Password Reminders & Reset vii. Social Authentication ii. Billing i. Introduction ii. Basic Usage ix. Errors & Logging i. Configuration ii. Handling Errors iii. HTTP Exceptions iv. Logging x. Events i. Basic Usage ii. Queued Event Handlers iii. Event Subscribers requests (a new type of class in Laravel 5.0) are now grouped under the app/Http directory, as they are all classes related to the HTTP transport layer of your application. Instead of a single, flat file of0 码力 | 242 页 | 1.44 MB | 1 年前3
 Learning Laravel147 Examples 147 Getting input 147 Chapter 51: Requests 148 Examples 148 Obtain an Instance of HTTP Request 148 Request Instance with other Parameters from routes in controller method 148 Chapter connect to controllers or can be wrapped into middlewares. Middelware is a mechanism for filtering HTTP requests. They can be used to interact with requests before they reach the controllers and can thus is how you use the other guard then "web" My App\Http\Controllers\Admin\LoginController Http\Controllers\Admin; use App\Http\Controllers\Controller; use Illuminate\Foundati0 码力 | 216 页 | 1.58 MB | 1 年前3 Learning Laravel147 Examples 147 Getting input 147 Chapter 51: Requests 148 Examples 148 Obtain an Instance of HTTP Request 148 Request Instance with other Parameters from routes in controller method 148 Chapter connect to controllers or can be wrapped into middlewares. Middelware is a mechanism for filtering HTTP requests. They can be used to interact with requests before they reach the controllers and can thus is how you use the other guard then "web" My App\Http\Controllers\Admin\LoginController Http\Controllers\Admin; use App\Http\Controllers\Controller; use Illuminate\Foundati0 码力 | 216 页 | 1.58 MB | 1 年前3
 《Slides Dev Web》02. Introduction aux frameworks PHP
ou artima developper3. 1http://en.wikipedia.org/wiki/Software_framework 2http://stackoverflow.com/questions/148747/what-is-the-difference-between-a-framework-and-a-library 3http://www.artima.com/forums/flat for webdev Conventions • Nommage – Classes – Base de données – Fichiers et dossiers • ROUTES : http://app.host.tld/controller/action[/key/val] • Arborescence : – Imposée ou libre selon frameworks – obligatoires ou non, mais RECOMMANDEES dans tous les cas 4http://martinfowler.com/bliki/InversionOfControl.html 5https://web.archive.org/web/20160316065751/http://blog.mazenod.fr/2010/01/design-pattern-mvc-zoom-sur-la-0 码力 | 24 页 | 1.03 MB | 1 年前3 《Slides Dev Web》02. Introduction aux frameworks PHP
ou artima developper3. 1http://en.wikipedia.org/wiki/Software_framework 2http://stackoverflow.com/questions/148747/what-is-the-difference-between-a-framework-and-a-library 3http://www.artima.com/forums/flat for webdev Conventions • Nommage – Classes – Base de données – Fichiers et dossiers • ROUTES : http://app.host.tld/controller/action[/key/val] • Arborescence : – Imposée ou libre selon frameworks – obligatoires ou non, mais RECOMMANDEES dans tous les cas 4http://martinfowler.com/bliki/InversionOfControl.html 5https://web.archive.org/web/20160316065751/http://blog.mazenod.fr/2010/01/design-pattern-mvc-zoom-sur-la-0 码力 | 24 页 | 1.03 MB | 1 年前3
 《Slides Dev Web》 08 . RSSNetVibes, Sniptracker… • Extensions – Sage • Liste4 1https://web.archive.org/web/20110726001954/http://diveintomark.org/archives/2004/02/04/incompatible-rss 2https://www.feedforall.com/100-uses-of-rss-feeds version="1.0" encoding="utf-8"?> 《Slides Dev Web》 08 . RSSNetVibes, Sniptracker… • Extensions – Sage • Liste4 1https://web.archive.org/web/20110726001954/http://diveintomark.org/archives/2004/02/04/incompatible-rss 2https://www.feedforall.com/100-uses-of-rss-feeds version="1.0" encoding="utf-8"?>- Arc Info News RSS 2.0 http://www.he-arc.ch/- News HE-Arc (RSS 2.0) - fr 2008 04:00:00 GMT- Sun, 26 Oct 2008 09:41:01 GMT 3- http://blogs.law.harvard.edu/tech/rss - david.grunenwald@he-arc.ch 0 码力 | 7 页 | 52.98 KB | 1 年前3
共 21 条
- 1
- 2
- 3













