forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIHttpResult.cs
More file actions
67 lines (55 loc) · 1.77 KB
/
IHttpResult.cs
File metadata and controls
67 lines (55 loc) · 1.77 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//Copyright (c) ServiceStack, Inc. All Rights Reserved.
//License: https://raw.github.com/ServiceStack/ServiceStack/master/license.txt
using System;
using System.Collections.Generic;
using System.Net;
namespace ServiceStack.Web
{
public interface IHttpResult : IHasOptions
{
/// <summary>
/// The HTTP Response Status
/// </summary>
int Status { get; set; }
/// <summary>
/// The HTTP Response Status Code
/// </summary>
HttpStatusCode StatusCode { get; set; }
/// <summary>
/// The HTTP Status Description
/// </summary>
string StatusDescription { get; set; }
/// <summary>
/// The HTTP Response ContentType
/// </summary>
string ContentType { get; set; }
/// <summary>
/// Additional HTTP Headers
/// </summary>
Dictionary<string, string> Headers { get; }
/// <summary>
/// Additional HTTP Cookies
/// </summary>
List<System.Net.Cookie> Cookies { get; }
/// <summary>
/// Response DTO
/// </summary>
object Response { get; set; }
/// <summary>
/// if not provided, get's injected by ServiceStack
/// </summary>
IContentTypeWriter ResponseFilter { get; set; }
/// <summary>
/// Holds the request call context
/// </summary>
IRequest RequestContext { get; set; }
/// <summary>
/// The padding length written with the body, to be added to ContentLength of body
/// </summary>
int PaddingLength { get; set; }
/// <summary>
/// Serialize the Response within the specified scope
/// </summary>
Func<IDisposable> ResultScope { get; set; }
}
}