Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

An awesome Common Gateway Interface Library for C++

License

NotificationsYou must be signed in to change notification settings

AdrianGjerstad/cgilib

Repository files navigation

travis-buildlicense-badgeplatform-linuxstd-c++17

Notice: this repository is no longer being maintained.

CGILib is a C++ library built out of the sheer frustration of having to build all of that barebones code that you need to get information from the server. It is a single-header Common Gateway Interface Library meant to squeeze every ounce of data out of the environment and feed it to you when you want.

Installation

Unfortunately, as this project has yet to receive a release, there are no installation instructions. Just take the header file at the root of this repo, and put it in (for *nix style systems)/usr/local/include.

When the first release is posted this README will have a one-liner install command.

Usage

#include<cstdlib>// srand, rand#include<ctime>// time#include<cgilib.h>// CGI Library#include<iostream>// endlintmain(int argc,char** argv) {// Set up pseudo-random generationsrand(time(NULL));// Set up a basic header  cgi::headers.add_header("Content-Type","text/plain");  cgi::out <<"I generated a random number!" << (rand()%10+1) << std::endl;cgi::send_response();return0;}

See more examples in the/examples directory.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

If an issue is already open, and you would like to tackle it, mention that you would like to, and we can collaboratefrom there.

Please make sure to test your additions, and, if you come up with a new test, put it in the/test directory.

License

GPLv3

About

An awesome Common Gateway Interface Library for C++

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp