-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Request.cs
26 lines (24 loc) · 898 Bytes
/
Request.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
using System.Collections.Generic;
using System.Net.Http;
namespace Octokit.Internal
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces")]
public class Request : IRequest
{
public Request()
{
Headers = new Dictionary<string, string>();
Parameters = new Dictionary<string, string>();
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; }
}
}