template<typename T>
struct anch::rest::FormMapper< T >
Mapping between T and Form , used by FormUrlEncoded and Multipart codecs to read and write T bodies. Specializations define:
- static void toForm(const T& value, anch::rest::Form& form, anch::codec::Side side)
- static void fromForm(T& value, const anch::rest::Form& form, anch::codec::Side side) : errors are reported with exceptions (
400 on server side)
template<>
static void toForm(
const UploadPhoto& value, anch::rest::Form& form,
anch::codec::Side) {
}
static void fromForm(UploadPhoto& value,
const anch::rest::Form& form,
anch::codec::Side side) {
}
};
.consumes<anch::rest::Multipart>();
- Template Parameters
-
- Since
- 0.2