protected override byte[] ProcessRequest( string path, Stream request, IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) { string[] p = SplitParams(path); if (p.Length == 0) { return(new byte[0]); } return(utf8.GetBytes(m_BakesService.Get(p[0]))); }
private void doGet(IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) { string[] p = SplitParams(httpRequest.UriPath); httpRequest.InputStream.Dispose(); if (p.Length == 0) { return; } httpResponse.RawBuffer = m_BakesService.Get(p[0]); }