- Building RESTful Web services with Go
- Naren Yellavula
- 118字
- 2021-07-02 20:14:08
Introducing httprouter, a lightweight HTTP router
httprouter, as the name suggests, routes the HTTP requests to particular handlers. Compared to the basic router, it has the following features:
- Allows variables in the route paths
- It matches the REST methods (GET, POST, PUT, and so on)
- No compromising on performance
We are going to discuss these qualities in more detail in the following section. Before that, there are a few noteworthy points that make httprouter an even better URL router:
- httprouter plays well with the inbuilt http.Handler
- httprouter explicitly says that a request can only match to one route or none
- The router's design encourages building sensible, hierarchical RESTful APIs
- You can build efficient static file servers
推薦閱讀
- 廣電5G從入門到精通
- 物聯網(IoT)基礎:網絡技術+協議+用例
- Building E-commerce Sites with VirtueMart Cookbook
- INSTANT PhpStorm Starter
- 網絡故障現場處理實踐(第4版)
- Spring Cloud微服務架構進階
- 數字通信同步技術的MATLAB與FPGA實現:Altera/Verilog版(第2版)
- Yii Application Development Cookbook(Second Edition)
- 物聯網通信技術
- Getting Started with Grunt:The JavaScript Task Runner
- 轉化:提升網站流量和轉化率的技巧
- INSTANT LinkedIn Customization How-to
- 局域網組成實踐
- 圖解物聯網
- Enterprise ApplicationDevelopment with Ext JSand Spring