示例#1
0
        /// <summary>
        ///     Constructor
        /// </summary>
        /// <param name="path">Resource Path</param>
        /// <param name="parameters">Request parameter</param>
        protected HttpRequest(string path, ParameterMap parameters)
        {
            if (!path.IsEmpty()) Path = path;

            if (parameters != null) {
                string queryString = parameters.UrlEncode();
                Path += "?" + queryString;
            }
        }
示例#2
0
        /// <summary>
        ///     Constructor
        /// </summary>
        /// <param name="path">Resource Path</param>
        /// <param name="parameters">Request parameter</param>
        protected HttpRequest(string path, ParameterMap parameters)
        {
            if (!path.IsEmpty())
            {
                Path = path;
            }

            if (parameters != null)
            {
                string queryString = parameters.UrlEncode();
                Path += "?" + queryString;
            }
        }