Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP / HTTPS - base module - protocol #105

Open
nhurde opened this issue Apr 1, 2023 · 1 comment
Open

HTTP / HTTPS - base module - protocol #105

nhurde opened this issue Apr 1, 2023 · 1 comment

Comments

@nhurde
Copy link
Contributor

nhurde commented Apr 1, 2023

Note: This is a seperate class solely for file uploading and downloading via C++11 or higher.

A seperate issue will be raised this weekend for TCP/UDP connections that can be handled by a separate module for simplcify sake.

A general base class module for future integration for https communication libraries like libcurl.

This will be a general wrapper for plug and play for different networking libraries.

Base class should have:
bool init_http_module(bool blocking, bool follow_redirects, bool use_ssl, std::string ssl_info );
bool quit_http_module();

bool can-support-https
bool requires_blocking_get(); //either the module will always be true or if async is possible this can be false
-- currently 1st iteration of this will default to always true for blocking

int request-file-size-file( string url, string file-location)
bool download-file( string url, string file-location)
bool upload-file ( string url, string file-location)
bool upload-file-quit ( string url )
float get-file-download-progress( string url )
bool file-stop-download( string url )
bool set-setting( int setting_id, bool value ) //an enum of setting_ids

more values and functions to come, but its already past 5pm on a Friday. i got phoenix wright to play lol.

@nhurde nhurde added this to the Winter 2024 milestone May 4, 2024
@nhurde
Copy link
Contributor Author

nhurde commented May 4, 2024

Adding to Winter 2024 due to backlog priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog (Secondary )
Development

No branches or pull requests

1 participant