Container for all the BHttpFormData instances making up an HTTP form contents. More...
Classes | |
class | Iterator |
Form Iterator. More... | |
Public Member Functions | |
BHttpForm () | |
Create a new form object. | |
BHttpForm (const BHttpForm &other) | |
Create a new form object as a copy of other. | |
BHttpForm (const BString &formString) | |
Create a new form object and parse the formString. | |
~BHttpForm () | |
Clear the form and destroy the form object. | |
status_t | AddBuffer (const BString &fieldName, const void *buffer, ssize_t size) |
Add a buffer to the form with the specified fieldName and buffer and size. | |
status_t | AddFile (const BString &fieldName, const BPath &file) |
Add a file to the form with the specified fieldName and value. | |
status_t | AddInt (const BString &name, int32 value) |
Add an int to the form with the specified fieldName and value. | |
status_t | AddString (const BString &name, const BString &value) |
Add a string to the form with the specified fieldName and value. | |
bool | HasField (const BString &name) const |
Returns whether or not a form has a field with the specified name. | |
void | MarkAsFile (const BString &fieldName, const BString &filename) |
Mark a field as a filename. | |
void | ParseString (const BString &formString) |
Parse the formString. | |
BString | RawData () const |
Return the form's raw data as a BString. | |
void | SetFormType (form_type type) |
Change form type. | |
void | UnmarkAsFile (const BString &fieldName) |
Unmark a field as a filename. | |
Container for all the BHttpFormData instances making up an HTTP form contents.