UCommon
ost::MIMEFormData Class Reference

This is a document part type for use in submitting multipart form data to a web server. More...

#include <mime.h>

Inheritance diagram for ost::MIMEFormData:
Collaboration diagram for ost::MIMEFormData:

Public Member Functions

void body (std::ostream *output)
 Stream content (value) of this form data field.
 
void head (std::ostream *output)
 Stream header, Content-Disposition form-data.
 
 MIMEFormData (MIMEMultipartForm *top, const char *name, const char *content)
 Construct form data field part of multipart form.
 

Protected Attributes

const char * content
 
const char * name
 
- Protected Attributes inherited from ost::MIMEItemPart
MIMEMultipartbase
 
const char * ctype
 
MIMEItemPartnext
 

Additional Inherited Members

- Protected Member Functions inherited from ost::MIMEItemPart
 MIMEItemPart (MIMEMultipart *top, const char *ct)
 Construct and attach a document part to a multipart document.
 

Detailed Description

This is a document part type for use in submitting multipart form data to a web server.

Author
David Sugar dyfet.nosp@m.@ost.nosp@m.el.co.nosp@m.m

multipart document part for web form data field.

Definition at line 192 of file mime.h.

Constructor & Destructor Documentation

◆ MIMEFormData()

ost::MIMEFormData::MIMEFormData ( MIMEMultipartForm * top,
const char * name,
const char * content )

Construct form data field part of multipart form.

Parameters
topmultipart form this is part of
nameof form data field
contentof form data field

Member Function Documentation

◆ body()

void ost::MIMEFormData::body ( std::ostream * output)
virtual

Stream content (value) of this form data field.

Parameters
outputstream to send body to.

Implements ost::MIMEItemPart.

◆ head()

void ost::MIMEFormData::head ( std::ostream * output)
virtual

Stream header, Content-Disposition form-data.

Parameters
outputstream to send header to.

Reimplemented from ost::MIMEItemPart.

Field Documentation

◆ content

const char* ost::MIMEFormData::content
protected

Definition at line 198 of file mime.h.

◆ name

const char* ost::MIMEFormData::name
protected

Definition at line 199 of file mime.h.


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