/* construct a MprVar from a string, using NULL if needed */ struct MprVar mprString(const char *s) { if (s == NULL) { return mprCreatePtrVar(NULL); } return mprCreateStringVar(s, True); }
void espSetStringVar(EspRequest *ep, EspEnvType oType, char *var, char *value) { /* * Will create or update if already existing */ mprSetPropertyValue(&ep->variables[oType], var, mprCreateStringVar(value, 0)); }
void espSetReturnString(EspRequest *ep, char *str) { mprAssert(ep); ejsSetReturnValue(ep->eid, mprCreateStringVar(str, 0)); }