﻿using System;
using System.Collections.Generic;
using System.Net.Http;

namespace Octokit.Internal
{
    public class Request : IRequest
    {
        public Request()
        {
            Headers = new Dictionary<string, string>();
            Parameters = new Dictionary<string, string>();
            AllowAutoRedirect = true;
        }

        public object Body { get; set; }
        public Dictionary<string, string> Headers { get; private set; }
        public HttpMethod Method { get; set; }
        public Dictionary<string, string> Parameters { get; private set; }
        public Uri BaseAddress { get; set; }
        public Uri Endpoint { get; set; }
        public TimeSpan Timeout { get; set; }
        public string ContentType { get; set; }
        public bool AllowAutoRedirect { get; set; }
    }
}

﻿using System;
using System.Collections.Generic;
using System.Net.Http;

namespace Octokit.Internal
{
    public class Request : IRequest
    {
        public Request()
        {
            Headers = new Dictionary<string, string>();
            Parameters = new Dictionary<string, string>();
            AllowAutoRedirect = true;
            Timeout = TimeSpan.FromSeconds(100);
        }

        public object Body { get; set; }
        public Dictionary<string, string> Headers { get; private set; }
        public HttpMethod Method { get; set; }
        public Dictionary<string, string> Parameters { get; private set; }
        public Uri BaseAddress { get; set; }
        public Uri Endpoint { get; set; }
        public TimeSpan Timeout { get; set; }
        public string ContentType { get; set; }
        public bool AllowAutoRedirect { get; set; }
    }
}

Set default timeout to 100 seconds
Set default timeout to 100 seconds

This is the same as HttpClient.
