上一页 1 ··· 433 434 435 436 437 438 439 440 441 ··· 494 下一页
摘要: hapi has built-in support for parsing cookies from a request headers, and writing cookies to a response, making state management easy and straight-for 阅读全文
posted @ 2016-03-01 02:58 Zhentiw 阅读(480) 评论(0) 推荐(0)
摘要: hapi supports request validation out of the box using the joi module. Request path parameters, payloads, and querystring parameters can be validated w 阅读全文
posted @ 2016-03-01 02:53 Zhentiw 阅读(594) 评论(0) 推荐(0)
摘要: The Immutable.js Record() allows you to model your immutable data much like you would model data with native Javascript classes or objects. It differs 阅读全文
posted @ 2016-02-29 15:18 Zhentiw 阅读(427) 评论(0) 推荐(0)
摘要: hapi automatically responds with JSON for any error passed to a route's reply()method. But what if your application needs errors rendered in HTML? Thi 阅读全文
posted @ 2016-02-29 03:45 Zhentiw 阅读(257) 评论(0) 推荐(0)
摘要: Instead of using middlware, hapi provides a number of points during the lifecycle of a request that you can hook-in to provide additional functionalit 阅读全文
posted @ 2016-02-29 03:35 Zhentiw 阅读(595) 评论(0) 推荐(0)
摘要: hapi makes handling POST and PUT payloads easy by buffering and parsing them automatically without requiring additional modules or middleware. This po 阅读全文
posted @ 2016-02-29 02:56 Zhentiw 阅读(574) 评论(0) 推荐(0)
摘要: View engines, or template engines, allow you to maintain a clean separation between your presentation layer and the rest of your application. This pos 阅读全文
posted @ 2016-02-29 02:48 Zhentiw 阅读(290) 评论(0) 推荐(0)
摘要: hapi does not support serving static files out of the box. Instead it relies on a module called Inert. This lesson will cover serving static files usi 阅读全文
posted @ 2016-02-28 21:22 Zhentiw 阅读(404) 评论(0) 推荐(0)
摘要: When you use reply method: let resp = reply('hello world') It actually return an response object. By using response object, you can modiy the response 阅读全文
posted @ 2016-02-28 21:07 Zhentiw 阅读(407) 评论(0) 推荐(0)
摘要: hapi's reply interface is one of it's most powerful features. It's smart enough to detect and serialize objects, buffers, promises and even streams. T 阅读全文
posted @ 2016-02-28 03:38 Zhentiw 阅读(413) 评论(0) 推荐(0)
上一页 1 ··· 433 434 435 436 437 438 439 440 441 ··· 494 下一页