Boost C++ Libraries

PrevUpHomeNext

Struct multipart_part_header

boost::taar::multipart_part_header — The headers of one multipart/form-data part.

Synopsis

// In header: <boost/taar/core/multipart.hpp>


struct multipart_part_header {

  // public member functions
  bool is_file() const noexcept;

  // public data members
  std::string name;  // name from Content-Disposition. 
  std::optional< std::string > filename;  // filename from Content-Disposition, if present. 
  std::string content_type;  // Part Content-Type; empty if absent. 
  std::vector< std::pair< std::string, std::string > > headers;  // All part headers, in order. 
};

Description

multipart_part_header public member functions

  1. bool is_file() const noexcept;
    True if the part carried a filename, i.e. it is a file field.

PrevUpHomeNext