server api: merge srvSetResponseCode, srvSetContentType and srvWriteBuilder methods