Esempio n. 1
0
        public Task <JsValue> ArrayBuffer()
        {
            if (TryCheckBodyUsed())
            {
                return(Task.FromResult <JsValue>(m_context.Undefined));
            }

            var foo    = m_response.ContentEncoding;
            var result = m_context.CreateArrayBuffer(m_response.RawBytes);

            m_bodyUsed = true;

            return(Task.FromResult <JsValue>(result));
        }