Join Troy Miles for an in-depth discussion in this video Parsing the path, part of Web Servers and APIs using C++.
- We've already seen Atom incorporate…a single parameter into a route handler…but what if we need more parameters?…That's not a problem.…You can use as many parameters as your route needs.…Let's return to the contact route handler.…Currently, we have a route handler…which searches for the contact…via a single route parameter, the email address.…Let's write another handler, this time…passing the first and last names.…So, we'll make a copy.…And put it right below it.…
Go ahead and adjust.…And now, we're gonna add a second string, so string.…And this is gonna be firstname,…and the second one is gonna be lastname.…Now, we're gonna have to make another change, here,…and that is that we need the request and response objects.…So, I'm gonna say const request reference req.…
Response reference res.…I need to modify this getView…and I'll explain in just one moment…why we're gonna modify it but now,…we're gonna call it with a res contact.…Here, let's add a little space.…We're now gonna search for first name and last name,…so first with a capital N, Name,…
- Working with Crow, the C++ micro web framework
- Deploying containers to Heroku
- Building websites and webpages
- Accessing data from a database
- Accessing data via RESTful APIs
- Creating API endpoints
- Running WebSockets on Heroku
Skill Level Intermediate
1. Installing Our Tools
2. Deploying to Heroku
Installing the Heroku CLI1m 17s
3. Building Websites
4. Data Access
5. RESTful APIs
6. WebSockets and Crow
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.