McRequest constructor

McRequest({
  1. required String url,
  2. Map<String, String> headers = const {},
  3. bool setCookies = false,
  4. bool debugging = true,
})

انشاء الطلب.

url

هو الرابط الخاص بالخادم بدون نقطة النهاية كمثال

شطل صحيح

www.test.com/api/

شكل حاطئ

www.test.com/api/users/

headers

متغيير اختياري

setCookies

Cookies تفعيل او الغاء حاصية الحفاظ على

debugging

console تفعيل او الغاء ظهور المشاكل في

Implementation

McRequest(
    {required this.url,
    this.headers = const {},
    this.setCookies = false,
    this.debugging = true});