You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.5 KiB
61 lines
1.5 KiB
/**
|
|
* Seaweedfs Master Server API
|
|
* The Seaweedfs Master Server API allows you to store blobs
|
|
*
|
|
* The version of the OpenAPI document: 3.43.0
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI-Generator 6.4.0.
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
/*
|
|
* MultipartFormData.h
|
|
*
|
|
* This class represents a container for building application/x-multipart-formdata requests.
|
|
*/
|
|
|
|
#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_MultipartFormData_H_
|
|
#define ORG_OPENAPITOOLS_CLIENT_MODEL_MultipartFormData_H_
|
|
|
|
|
|
#include "CppRestOpenAPIClient/IHttpBody.h"
|
|
#include "CppRestOpenAPIClient/HttpContent.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
#include <vector>
|
|
#include <map>
|
|
#include <memory>
|
|
|
|
namespace org {
|
|
namespace openapitools {
|
|
namespace client {
|
|
namespace model {
|
|
|
|
class MultipartFormData
|
|
: public IHttpBody
|
|
{
|
|
public:
|
|
MultipartFormData();
|
|
MultipartFormData(const utility::string_t& boundary);
|
|
virtual ~MultipartFormData();
|
|
|
|
virtual void add( std::shared_ptr<HttpContent> content );
|
|
virtual utility::string_t getBoundary();
|
|
virtual std::shared_ptr<HttpContent> getContent(const utility::string_t& name) const;
|
|
virtual bool hasContent(const utility::string_t& name) const;
|
|
virtual void writeTo( std::ostream& target );
|
|
|
|
protected:
|
|
std::vector<std::shared_ptr<HttpContent>> m_Contents;
|
|
utility::string_t m_Boundary;
|
|
std::map<utility::string_t, std::shared_ptr<HttpContent>> m_ContentLookup;
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_MultipartFormData_H_ */
|