AssemblyCSharp.BackendConnection.CreateRequestHeaders C# (CSharp) Method

CreateRequestHeaders() private method

private CreateRequestHeaders ( string path, string body = null, Dictionary,System.Collections.Generic urlParams = null ) : Dictionary,System.Collections.Generic
path string
body string
urlParams Dictionary,System.Collections.Generic
return Dictionary,System.Collections.Generic
        private Hash CreateRequestHeaders(string path, string body = null, Hash urlParams = null)
        {
            var headers = new Hash
            {
            };

            if (!string.IsNullOrEmpty(_sessionCookie))
            {
            headers.Add(COOKIE, _sessionCookie);
            }

            if (_password != null)
            {
            headers.Add(X_SIGNATURE, RequestDigest(path, body, urlParams));

            if (_sessionID != null)
            {
                headers.Add(X_SEQUENCE,   (++_sequence).ToString());
                headers.Add(X_SESSION_ID, _sessionID);
            }
            }

            return headers;
        }