Go to the source code of this file.
|
static void | jami::createMessageBody (pj_pool_t *pool, const std::pair< std::string, std::string > &payload, pjsip_msg_body **body_p) |
| the pair<string, string> we receive is expected to be in the format <MIME type, payload> the MIME type is in the format "type/subtype" in the header it will be presented as "Content-Type: type/subtype" following the RFC spec, this header line can also contain other parameters in the format: Content-Type: type/subtype; arg=value; arg=value; … thus we also accept the key of the map to be in such a format: type/subtype; arg=value; arg=value; …
|
|
static std::pair< std::string, std::string > | jami::parseMessageBody (const pjsip_msg_body *body) |
| Creates std::pair with the Content-Type header contents as the first value and the message payload as the second value.
|
|