Skip to content

alexjercan/api.h

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api.h

Simple header-only library for creating an API.

Examples

cd examples
make
  1. Curl

Basic example, this will just respond with a string that contains a simple message for different routes.

In one terminal start the http server

./curl/main

Then you can try to make curl requests to it

curl localhost:8080/
curl localhost:8080/another
curl localhost:8080/notexist
  1. HTML

Simple example that reads an html file from disk and sends it's contents as response.

In one terminal start the http server

./html/main

Then you can try to make curl requests to it or open it in browser

curl localhost:8080

About

Blazingly Fast HTTP API Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages