sqlpage 0.45.0

Build data user interfaces entirely in SQL. A web server that takes .sql files and formats the query result using pre-made configurable professional-looking components.
1
2
3
4
5
6
use crate::webserver::http_request_info::RequestInfo;

/// Returns the protocol of the current request (http or https).
pub(super) async fn protocol(request: &RequestInfo) -> &str {
    &request.protocol
}