RESTinio
|
Various tools for simplification of file uploading. More...
#include <restinio/helpers/http_field_parsers/content-type.hpp>
#include <restinio/helpers/http_field_parsers/content-disposition.hpp>
#include <restinio/helpers/multipart_body.hpp>
#include <restinio/http_headers.hpp>
#include <restinio/request_handler.hpp>
#include <restinio/expected.hpp>
#include <iostream>
Go to the source code of this file.
Namespaces | |
restinio | |
restinio::file_upload | |
restinio::file_upload::impl | |
Typedefs | |
using | restinio::file_upload::handling_result_t = restinio::multipart_body::handling_result_t |
The result to be returned from user-provided handler of parts of multipart body. More... | |
Functions | |
constexpr RESTINIO_NODISCARD enumeration_error_t | restinio::file_upload::impl::translate_enumeration_error (restinio::multipart_body::enumeration_error_t original) |
Helper function for conversion from one enumeration_error to another. More... | |
RESTINIO_NODISCARD expected_t< part_description_t, enumeration_error_t > | restinio::file_upload::analyze_part (restinio::multipart_body::parsed_part_t parsed_part) |
Helper function for analyzing an already parsed part of a multipart body for presence of an uploaded file. More... | |
template<typename Handler > | |
expected_t< std::size_t, enumeration_error_t > | restinio::file_upload::enumerate_parts_with_files (const request_t &req, Handler &&handler, string_view_t expected_media_type=string_view_t{"multipart"}, string_view_t expected_media_subtype=string_view_t{"form-data"}) |
A helper function for enumeration of parts of a multipart body those contain uploaded files. More... | |
Various tools for simplification of file uploading.
Definition in file file_upload.hpp.