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 当我们在之前版本的路由群组中指定了频率限制后,必须要硬编码最大请求次数: 本文档由 Laravel 学院提供 Laravel 学院致力于提供优质 Laravel 中文学习资源:http://laravelacademy.org 2 Route::middleware('auth:api', 'throttle:60,1')->group(function () { 5.6 中,模型上已加载的关联关系在队列任务被 处理时会自动进行重新加载。 本文档由 Laravel 学院提供 Laravel 学院致力于提供优质 Laravel 中文学习资源:http://laravelacademy.org 3 Eloquent 日期转化 现在你可以单独自定义 Eloquent 日期字段转化格式了,开始之前,需要在转化声明中指定目标日期格式。指定好之后,该格式就会在模型序列化为0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.1 中文文档将登录次数限制引入框架,更多详情请参考认证限制一节。 Laravel 5.1 Laravel 5.1 在 5.0 的基础上继续进行优化和提升,接受 PSR-2 代码风格,新增事件广播 机制,中间件参数,Artisan 优化,等等。 PHP 5.5.9+ 由于 PHP 5.4 将会在今年 9 月份“寿终正寝”,并且 PHP 开发组不会再提供安全更新,Laravel 5.1 要求 PHP5 更多关于事件广播的内容请查看事件一节。 中间件参数 Laravel 5.1 里,中间件可以接受额外的自定义参数,例如,如果你的应用需要在执行给定 的 action 之前验证被授予指定“角色”的认证用户,可以创建一个 RoleMiddleware 来接收角 色名称作为额外参数: Http\Middleware; use Closure; Closure; class RoleMiddleware { /** * 运行请求过滤器. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @param string $role * @return mixed0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档{user} 参数。 现在,在 Laravel 5.2 中,框架将会基于相应 URI 片段自动注入模型,从而允许你快速 访问需要的模型实例。 如果路由参数片段 {user} 匹配路由闭包或控制器方法中相应变量 $user,并且被类型声明 为一个 Eloquent 模型类的话,Laravel 将会自动注入该模型。 更多隐式模型绑定详情请查看 Laravel 5.2 文档 HTTP 路由模型绑定部分。 应用结构采用的正是这个方法。例如,在默认 的 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 6.0 中文文档illuminate/database 依赖 包的非 Laravel 应用。 Illuminate\Database\Capsule\Manager 类的 table 方法签名被 更新为接收数据表别名作为第二个参数,如果你在 Laravel 应用之 外使用了 illuminate/database,需要更新相应的方法调用: /** * Get a fluent query builder instance 中文学习资源:https://xueyuanjun.com 18 * @var string */ protected $keyType = 'string'; 邮箱验证 重新发送验证路由 HTTP 方法 影响级别:中等 为了免除潜在的 CSRF 攻击,使用 Laravel 内置邮箱验证功能通过 路由器注册的 email/resend 路由请求方法已经由 GET 更新 为 POST。 路由 URL 生成 & 提取参数 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 24 在之前版本的 Laravel 中,传递关联数组参数到 route 辅助函数或 者 URL::route 方法生成指定路由(包含可选参数)对应 URL 时偶 尔会出现将这些参数作为 URI 值的现象,即使传递参数值在路由路 径中没有匹配键。从0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.3 中文文档......................................................................................... 92 5. HTTP 层 ............................................................................................... JavaScript 或者 CSS 框架。关于如何进行现代 Laravel 前端开发,请查看对应文档。 路由文件 默认情况下,新安装的 Laravel 5.3 应用在新的顶级目录 routes 下包含两个 HTTP 路由文件。web 和 api 路由文件在如何分割 Web 界面和 API 路由方面提供了指导。api 路由文件中的路由会通 过 RouteServiceProvider 自动添加 api 前缀和 升级指南中的废弃功能都已从框架中移除,你需要查看这个列表以确定不 再使用这些废弃功能。 数组 key/value 顺序更改 Arr 类上的 first、last、以及 contains 方法现在将“value”作为第一个参数传递给给定闭包,例 如: Arr::first(function ($value, $key) { 本文档由 Laravel 学院(LaravelAcademy.org)提供0 码力 | 691 页 | 9.37 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
《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"?>Arc Info News RSS 2.0 http://www.he-arc.ch/News HE-Arc (RSS 2.0) fr 2008 04:00:00 GMTSun, 26 Oct 2008 09:41:01 GMT 3http://blogs.law.harvard.edu/tech/rss david.grunenwald@he-arc.ch 0 码力 | 7 页 | 52.98 KB | 1 年前3
共 21 条
- 1
- 2
- 3













