Show / Hide Table of Contents

Class HttpResponse

Ответ.

Inheritance
System.Object
HttpResponse
JsonHttpResponse
RedirectHttpResponse
StreamHttpResponse
TextHttpResponse
ViewHttpResponce
PrintViewHttpResponse
Namespace:InfinniPlatform.Http
Assembly:InfinniPlatform.Core.Abstractions.dll
Syntax
public class HttpResponse : object, IHttpResponse

Constructors

| Improve this Doc View Source

HttpResponse(Int32, String)

Конструктор.

Declaration
public HttpResponse(int statusCode = 200, string contentType = null)
Parameters
Type Name Description
System.Int32 statusCode

Код состояния.

System.String contentType

Тип содержимого тела ответа.

Fields

| Improve this Doc View Source

Forbidden

Запрос запрещен.

Declaration
public static readonly IHttpResponse Forbidden
Field Value
Type Description
IHttpResponse
| Improve this Doc View Source

NoContent

Ответ не имеет содержимого.

Declaration
public static readonly Action<Stream> NoContent
Field Value
Type Description
Action<Stream>
| Improve this Doc View Source

NotFound

Ресурс не найден.

Declaration
public static readonly IHttpResponse NotFound
Field Value
Type Description
IHttpResponse
| Improve this Doc View Source

Ok

Запрос успешен.

Declaration
public static readonly IHttpResponse Ok
Field Value
Type Description
IHttpResponse
| Improve this Doc View Source

Unauthorized

Запрос не авторизован.

Declaration
public static readonly IHttpResponse Unauthorized
Field Value
Type Description
IHttpResponse

Properties

| Improve this Doc View Source

Content

Метод записи содержимого тела ответа.

Declaration
public Action<Stream> Content { get; set; }
Property Value
Type Description
Action<Stream>
Implements
IHttpResponse.Content
| Improve this Doc View Source

ContentType

Тип содержимого тела ответа.

Declaration
public string ContentType { get; set; }
Property Value
Type Description
System.String
Implements
IHttpResponse.ContentType
| Improve this Doc View Source

Headers

Заголовок ответа.

Declaration
public IDictionary<string, string> Headers { get; set; }
Property Value
Type Description
IDictionary<System.String, System.String>
Implements
IHttpResponse.Headers
| Improve this Doc View Source

ReasonPhrase

Описание состояния.

Declaration
public string ReasonPhrase { get; set; }
Property Value
Type Description
System.String
Implements
IHttpResponse.ReasonPhrase
| Improve this Doc View Source

StatusCode

Код состояния.

Declaration
public int StatusCode { get; set; }
Property Value
Type Description
System.Int32
Implements
IHttpResponse.StatusCode

Methods

| Improve this Doc View Source

GetHeader(String)

Возвращает значение заголовка.

Declaration
public string GetHeader(string key)
Parameters
Type Name Description
System.String key
Returns
Type Description
System.String
| Improve this Doc View Source

SetHeader(String, String)

Устанавливает значение заголовка.

Declaration
public void SetHeader(string key, string value)
Parameters
Type Name Description
System.String key
System.String value

Extension Methods

DynamicCollectionExtensions.GetItem(Object, Int32)
DynamicCollectionExtensions.SetItem(Object, Int32, Object)
DynamicCollectionExtensions.AddItem(Object, Object)
DynamicCollectionExtensions.InsertItem(Object, Int32, Object)
DynamicCollectionExtensions.RemoveItem(Object, Object)
DynamicCollectionExtensions.RemoveItemAt(Object, Int32)
DynamicCollectionExtensions.MoveItem(Object, Object, Int32)
DynamicObjectExtensions.TryGetPropertyValue(Object, String)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TryGetPropertyValueByPath(Object, String)
DynamicObjectExtensions.TrySetPropertyValueByPath(Object, String, Object)
ReflectionExtensions.IsInstanceOfType(Object, Type)
ReflectionExtensions.GetMemberValue(Object, String)
ReflectionExtensions.SetMemberValue(Object, String, Object)
ReflectionExtensions.InvokeMember(Object, String, Object[], out Object, Type[])
ReflectionExtensions.GetFieldValue(Object, FieldInfo)
ReflectionExtensions.SetFieldValue(Object, FieldInfo, Object)
ReflectionExtensions.GetPropertyValue(Object, PropertyInfo)
ReflectionExtensions.SetPropertyValue(Object, PropertyInfo, Object)
ReflectionExtensions.GetMethodDelegate(Object, MethodInfo)
ReflectionExtensions.GetEventDelegate(Object, EventInfo)
ReflectionExtensions.SetEventDelegate(Object, EventInfo, Object)
CommonExtensions.ExecuteSilent<T>(T, Action<T>)
  • Improve this Doc
  • View Source
Back to top © Copyright Infinnity Solutions Ltd, 2010–2017.