mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-29 17:46:29 +03:00
Minor changes.
--HG-- branch : dev
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
#include <eepp/system/mutex.hpp>
|
||||
#include <eepp/system/lock.hpp>
|
||||
#include <eepp/network/uri.hpp>
|
||||
#include <eepp/thirdparty/PlusCallback/callback.hpp>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <list>
|
||||
|
||||
@@ -21,7 +21,7 @@ Compression::Status Compression::compress(IOStream& dst, IOStream& src, Compress
|
||||
case MODE_GZIP:
|
||||
{
|
||||
int ret, flush;
|
||||
unsigned have;
|
||||
ios_size have;
|
||||
z_stream strm = {};
|
||||
char in[DEFLATE_CHUNK_SIZE];
|
||||
char out[DEFLATE_CHUNK_SIZE];
|
||||
|
||||
@@ -35,15 +35,15 @@ EE_MAIN_FUNC int main (int argc, char * argv []) {
|
||||
parser.ParseCLI(argc, argv);
|
||||
} catch (const args::Help&) {
|
||||
std::cout << parser;
|
||||
return 0;
|
||||
return EXIT_SUCCESS;
|
||||
} catch (const args::ParseError& e) {
|
||||
std::cerr << e.what() << std::endl;
|
||||
std::cerr << parser;
|
||||
return 1;
|
||||
return EXIT_FAILURE;
|
||||
} catch (args::ValidationError& e) {
|
||||
std::cerr << e.what() << std::endl;
|
||||
std::cerr << parser;
|
||||
return 1;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
{
|
||||
@@ -59,10 +59,7 @@ EE_MAIN_FUNC int main (int argc, char * argv []) {
|
||||
http.setHost("http://en.wikipedia.org");
|
||||
}
|
||||
|
||||
// Prepare a request to get the wikipedia main page
|
||||
request.setUri("/wiki/Main_Page");
|
||||
|
||||
// Creates an async http request
|
||||
// Creates an async http request and set the path requested
|
||||
Http::Request asyncRequest( "/wiki/" + Version::getCodename() );
|
||||
|
||||
http.sendAsyncRequest([]( const Http& http, Http::Request& request, Http::Response& response ) {
|
||||
|
||||
Reference in New Issue
Block a user