Example #1
0
        /// <summary>
        /// 发送 PATCH 请求
        /// </summary>
        /// <param name="connId"></param>
        /// <param name="path"></param>
        /// <param name="headers"></param>
        /// <param name="body"></param>
        /// <returns></returns>
        public bool SendPatch(IntPtr connId, string path, THeader[] headers, string body)
        {
            int bodyLength    = body == null ? 0 : body.Length;
            int headersLength = headers == null ? 0 : headers.Length;

            return(HttpSdk.HP_HttpAgent_SendPatch(pAgent, connId, path, headers, headersLength, body, bodyLength));
        }