Beispiel #1
0
        private IFlurlRequest BuildBaseRequest(string url, object?query, object?cookies)
        {
            IFlurlRequest req = new FlurlRequest(url);

            if (query != null)
            {
                req = req.SetQueryParams(query);
            }
            if (cookies != null)
            {
                req = req.WithCookies(cookies);
            }

            return(req);
        }