#include <form_data.hpp>
Type to represent the data held by an HTML form.
- See also
- form
◆ content()
std::optional< std::string > form_data::content |
( |
std::string_view |
field_name | ) |
const |
The the parsed data content of a specific field.
- Parameters
-
field_name | The name of the field. |
- Returns
◆ dump()
std::string form_data::dump |
( |
| ) |
const |
Dumps the key-value pairs as a readable string.
- Returns
- Key-value pairs represented as a string
◆ field_by_name()
std::optional< form_field_data > form_data::field_by_name |
( |
std::string_view |
field_name | ) |
const |
Get a field by name.
- Parameters
-
field_name | The field name. |
- Returns
- The field (if any).
◆ has_content()
bool form_data::has_content |
( |
std::string_view |
field_name | ) |
const |
Checks whether a particular field has parsed content.
- Parameters
-
field_name | The field name. |
- Returns
- Whether the field has parsed content.
◆ has_data()
bool form_data::has_data |
( |
std::string_view |
field_name | ) |
const |
Checks whether a field has parsed data.
- Parameters
-
field_name | The name of the field. |
- Returns
- Whether the field has parsed data.
◆ fields
The documentation for this class was generated from the following files:
- lib/malloy/core/html/form_data.hpp
- lib/malloy/core/html/form_data.cpp