PUBLIC HttpStream *getStream() { HttpStream *stream; stream = mprGetThreadData(((Esp*) MPR->espService)->local); if (stream == 0) { mprLog("error esp", 0, "Stream is not defined in thread local storage.\n" "If using a callback, make sure you invoke espSetStream with the connection before using the ESP abbreviated API"); } return stream; }
PUBLIC HttpConn *getConn() { return mprGetThreadData(((Esp*) MPR->espService)->local); }