Skip to content

Commit be303ea

Browse files
committed
Fix spaces vs tabs.
1 parent bade8c3 commit be303ea

File tree

6 files changed

+807
-807
lines changed

6 files changed

+807
-807
lines changed

RestSharp/Enum.cs

Lines changed: 82 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,82 @@
1-
#region License
2-
// Copyright 2010 John Sheehan
3-
//
4-
// Licensed under the Apache License, Version 2.0 (the "License");
5-
// you may not use this file except in compliance with the License.
6-
// You may obtain a copy of the License at
7-
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
9-
//
10-
// Unless required by applicable law or agreed to in writing, software
11-
// distributed under the License is distributed on an "AS IS" BASIS,
12-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
// See the License for the specific language governing permissions and
14-
// limitations under the License.
15-
#endregion
16-
17-
namespace RestSharp
18-
{
19-
///<summary>
20-
/// Types of parameters that can be added to requests
21-
///</summary>
22-
public enum ParameterType
23-
{
24-
Cookie,
25-
GetOrPost,
26-
UrlSegment,
27-
HttpHeader,
28-
RequestBody,
29-
QueryString
30-
}
31-
32-
/// <summary>
33-
/// Data formats
34-
/// </summary>
35-
public enum DataFormat
36-
{
37-
Json,
38-
Xml
39-
}
40-
41-
/// <summary>
42-
/// HTTP method to use when making requests
43-
/// </summary>
44-
public enum Method
45-
{
46-
GET,
47-
POST,
48-
PUT,
49-
DELETE,
50-
HEAD,
51-
OPTIONS,
52-
PATCH,
53-
MERGE,
54-
}
55-
56-
/// <summary>
57-
/// Format strings for commonly-used date formats
58-
/// </summary>
59-
public struct DateFormat
60-
{
61-
/// <summary>
62-
/// .NET format string for ISO 8601 date format
63-
/// </summary>
64-
public const string Iso8601 = "s";
65-
/// <summary>
66-
/// .NET format string for roundtrip date format
67-
/// </summary>
68-
public const string RoundTrip = "u";
69-
}
70-
71-
/// <summary>
72-
/// Status for responses (surprised?)
73-
/// </summary>
74-
public enum ResponseStatus
75-
{
76-
None,
77-
Completed,
78-
Error,
79-
TimedOut,
80-
Aborted
81-
}
82-
}
1+
#region License
2+
// Copyright 2010 John Sheehan
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
#endregion
16+
17+
namespace RestSharp
18+
{
19+
///<summary>
20+
/// Types of parameters that can be added to requests
21+
///</summary>
22+
public enum ParameterType
23+
{
24+
Cookie,
25+
GetOrPost,
26+
UrlSegment,
27+
HttpHeader,
28+
RequestBody,
29+
QueryString
30+
}
31+
32+
/// <summary>
33+
/// Data formats
34+
/// </summary>
35+
public enum DataFormat
36+
{
37+
Json,
38+
Xml
39+
}
40+
41+
/// <summary>
42+
/// HTTP method to use when making requests
43+
/// </summary>
44+
public enum Method
45+
{
46+
GET,
47+
POST,
48+
PUT,
49+
DELETE,
50+
HEAD,
51+
OPTIONS,
52+
PATCH,
53+
MERGE,
54+
}
55+
56+
/// <summary>
57+
/// Format strings for commonly-used date formats
58+
/// </summary>
59+
public struct DateFormat
60+
{
61+
/// <summary>
62+
/// .NET format string for ISO 8601 date format
63+
/// </summary>
64+
public const string Iso8601 = "s";
65+
/// <summary>
66+
/// .NET format string for roundtrip date format
67+
/// </summary>
68+
public const string RoundTrip = "u";
69+
}
70+
71+
/// <summary>
72+
/// Status for responses (surprised?)
73+
/// </summary>
74+
public enum ResponseStatus
75+
{
76+
None,
77+
Completed,
78+
Error,
79+
TimedOut,
80+
Aborted
81+
}
82+
}

RestSharp/Http.Async.cs

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
#region License
2-
// Copyright 2010 John Sheehan
3-
//
4-
// Licensed under the Apache License, Version 2.0 (the "License");
5-
// you may not use this file except in compliance with the License.
6-
// You may obtain a copy of the License at
7-
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
9-
//
10-
// Unless required by applicable law or agreed to in writing, software
11-
// distributed under the License is distributed on an "AS IS" BASIS,
12-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
// See the License for the specific language governing permissions and
14-
// limitations under the License.
15-
#endregion
16-
17-
using System;
18-
using System.Net;
19-
using System.Threading;
20-
using RestSharp.Extensions;
21-
1+
#region License
2+
// Copyright 2010 John Sheehan
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
#endregion
16+
17+
using System;
18+
using System.Net;
19+
using System.Threading;
20+
using RestSharp.Extensions;
21+
2222
#if SILVERLIGHT
2323
using System.Windows.Browser;
2424
using System.Net.Browser;
25-
#endif
26-
25+
#endif
26+
2727
#if WINDOWS_PHONE
2828
using System.Windows.Threading;
2929
using System.Windows;
30-
#endif
31-
32-
#if (FRAMEWORK && !MONOTOUCH && !MONODROID && !PocketPC)
33-
using System.Web;
30+
#endif
31+
32+
#if (FRAMEWORK && !MONOTOUCH && !MONODROID && !PocketPC)
33+
using System.Web;
3434
#endif
3535

3636
namespace RestSharp
@@ -457,4 +457,4 @@ private class TimeOutState
457457
public HttpWebRequest Request { get; set; }
458458
}
459459
}
460-
}
460+
}

RestSharp/Http.Sync.cs

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
#region License
2-
// Copyright 2010 John Sheehan
3-
//
4-
// Licensed under the Apache License, Version 2.0 (the "License");
5-
// you may not use this file except in compliance with the License.
6-
// You may obtain a copy of the License at
7-
//
8-
// http://www.apache.org/licenses/LICENSE-2.0
9-
//
10-
// Unless required by applicable law or agreed to in writing, software
11-
// distributed under the License is distributed on an "AS IS" BASIS,
12-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
// See the License for the specific language governing permissions and
14-
// limitations under the License.
15-
#endregion
16-
17-
#if FRAMEWORK || PocketPC
18-
using System;
19-
using System.Net;
20-
21-
#if !MONOTOUCH && !MONODROID && !PocketPC
22-
using System.Web;
23-
#endif
24-
1+
#region License
2+
// Copyright 2010 John Sheehan
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
#endregion
16+
17+
#if FRAMEWORK || PocketPC
18+
using System;
19+
using System.Net;
20+
21+
#if !MONOTOUCH && !MONODROID && !PocketPC
22+
using System.Web;
23+
#endif
24+
2525
using RestSharp.Extensions;
2626

2727
namespace RestSharp
@@ -305,5 +305,5 @@ private HttpWebRequest ConfigureWebRequest(string method, Uri url)
305305
return webRequest;
306306
}
307307
}
308-
}
308+
}
309309
#endif

0 commit comments

Comments
 (0)