HTTP & AJAX
06.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 年前3Laravel 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 年前3Laravel 5.1 中文文档
来接收角 色名称作为额外参数: 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/{loc map: homestead.app to: /home/vagrant/Code/Laravel/public hhvm: true 默认情况下,每个站点都可以通过 HTTP(端口号:8000)和 HTTPS(端口号:44300) 进行访问。 2.2.5 Hosts 文件 不要忘记把 Nginx 站点中的域名添加到本地机器上的 hosts 文件,该文件会将对本地域名的0 码力 | 307 页 | 3.46 MB | 1 年前3Laravel 6.0 中文文档
中文学习资源: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' PHP,并且想要使用 PHP 内置的开发环境服 务器为应用提供服务,可以使用 Artisan 命令 serve: php artisan serve 该命令将会在本地启动开发环境服务器,这样在浏览器中通 过 http://localhost:8000 即可访问应用: 当然,更强大的本地开发环境选择还是 Homestead 和 Valet,还可 以使用 Laradock 基于 Docker 环境进行开发。如果你觉得它们都不0 码力 | 1442 页 | 14.66 MB | 1 年前3Laravel 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 年前3Laravel 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 年前3Laravel 5.3 中文文档
......................................................................................... 92 5. HTTP 层 ............................................................................................... JavaScript 或者 CSS 框架。关于如何进行现代 Laravel 前端开发,请查看对应文档。 路由文件 默认情况下,新安装的 Laravel 5.3 应用在新的顶级目录 routes 下包含两个 HTTP 路由文件。web 和 api 路由文件在如何分割 Web 界面和 API 路由方面提供了指导。api 路由文件中的路由会通 过 RouteServiceProvider 自动添加 api 前缀和 Laravel 中文学习资源 17 AuthorizesResourcestrait 已 经 和 AuthorizesRequeststrait 合 并 到 一 起 , 你 需 要 从 app/Http/Controllers/Controller.php 中移除 AuthorizesResourcestrait。 Blade 自定义指令 在之前版本的 Laravel 中,我们使用 directive0 码力 | 691 页 | 9.37 MB | 1 年前3Learning Laravel
147 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 . RSS
NetVibes, 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