Malloy
Loading...
Searching...
No Matches
malloy::html::multipart_parser Class Reference

#include <multipart_parser.hpp>

Classes

struct  part

Static Public Member Functions

static std::vector< part > parse (const malloy::http::request<> &req)
static std::vector< part > parse (std::string_view body, const std::string &boundary)

Detailed Description

A parser for parsing multipart/form-data HTTP bodies.

This should be able to parse according to RFC7578.

Member Function Documentation

◆ parse() [1/2]

std::vector< multipart_parser::part > multipart_parser::parse ( const malloy::http::request<> & req)
staticnodiscard

Parses the individual parts of a multipart/form-data message.

Parameters
reqThe request to parse.
Returns
The individual, parsed parts.
Here is the call graph for this function:

◆ parse() [2/2]

std::vector< multipart_parser::part > multipart_parser::parse ( std::string_view body,
const std::string & boundary )
staticnodiscard

Parses the individual parts of a multipart/form-data message.

Parameters
bodyThe request body.
boundaryThe boundary indicator.
Returns
The individual, parsed parts.

The documentation for this class was generated from the following files: