|
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 | +} |
0 commit comments