current location: Home > download site > Library download > Other libraries > PHP library for efficient routing
PHP library for efficient routing
Classify: Library download / Other libraries | Release time: 2017-12-15 | visits: 1870 |
Download: 88 |
Latest Downloads
Fantasy Aquarium
Girls Frontline
Wings of Stars
Little Flower Fairy Fairy Paradise
Restaurant Cute Story
Shanhe Travel Exploration
Love and Producer
The most powerful brain 3
Odd Dust: Damila
Young Journey to the West 2
24 HoursReading Leaderboard
- 1 Why Am I Getting a 404 Error When Inserting Images in My Hugo Blog?
- 2 dsetup16.dll - What is dsetup16.dll?
- 3 dtrsve.dll - What is dtrsve.dll?
- 4 dxcodex.ocx - What is dxcodex.ocx?
- 5 Is std::shared_ptr Thread-Safe When Modifying Shared Objects?
- 6 dsbho_02.dll - What is dsbho_02.dll?
- 7 Strategies to Reduce the Startup Time and Memory Footprint of Your Java App by Up to
- 8 Why Is My MySQL Event Creation Failing with "You have an error in your SQL syntax"?
- 9 Why Is My Sass File Throwing an "Invalid CSS: Expected Expression" Error?
- 10 Why does my not shrink as expected? It seems to have a non-removable min-width: min-content problem.
- 11 dwin0008.dll - What is dwin0008.dll?
- 12 What are the Key Differences between Static and Non-Static Nested Classes in Java?
- 13 X Empire Price Soared To New ATH: Here's What You Should Know
- 14 dwpp.dll - What is dwpp.dll?
- 15 Why Does My Go Interface Method Return Type Cause a Compilation Error?
Latest Tutorials
-
- Go language practical GraphQL
- 2000 2024-04-19
-
- 550W fan master learns JavaScript from scratch step by step
- 3418 2024-04-18
-
- Getting Started with MySQL (Teacher mosh)
- 1803 2024-04-07
-
- Mock.js | Axios.js | Json | Ajax--Ten days of quality class
- 2616 2024-03-29
<?php namespace FastRoute; use PHPUnit\Framework\TestCase; class RouteCollectorTest extends TestCase { public function testShortcuts() { $r = new DummyRouteCollector(); $r->delete('/delete', 'delete'); $r->get('/get', 'get'); $r->head('/head', 'head'); $r->patch('/patch', 'patch'); $r->post('/post', 'post'); $r->put('/put', 'put'); $expected = [ ['DELETE', '/delete', 'delete'], ['GET', '/get', 'get'], ['HEAD', '/head', 'head'], ['PATCH', '/patch', 'patch'], ['POST', '/post', 'post'], ['PUT', '/put', 'put'], ]; $this->assertSame($expected, $r->routes); }
Routing refers to the network-wide process of determining the end-to-end path when a packet travels from source to destination [1]. Routing works on the third layer of the OSI reference model - the packet forwarding device of the network layer. Routers implement network interconnection by forwarding data packets. Although routers can support multiple protocols (such as TCP/IP, IPX/SPX, AppleTalk, etc.), the vast majority of routers in our country run the TCP/IP protocol. Routers usually connect two or more logical ports identified by IP subnets or point-to-point protocols, and have at least 1 physical port. The router determines the output port and next hop address based on the network layer address in the received data packet and the routing table maintained internally by the router, and rewrites the link layer data packet header to forward the data packet. Routers maintain routing tables by dynamically maintaining routing tables to reflect the current network topology and by exchanging routing and link information with other routers on the network.