Blighttp.Reply.GetData C# (CSharp) Метод

GetData() публичный Метод

public GetData ( ) : byte[]
Результат byte[]
        public byte[] GetData()
        {
            byte[] bodyBytes = Encoding.GetBytes(Body);
            string header = GetCommonHeader();
            if (IsReferral)
                header += string.Format("Location: {0}\r\n", Location);
            else
                header += string.Format("Content-Length: {0}\r\n", bodyBytes.Length);
            header += "\r\n";
            byte[] headerBytes = Encoding.GetBytes(header);
            return MergeHeaderAndBody(headerBytes, bodyBytes);
        }