Show / Hide Table of Contents

Class StreamHttpResponse

Ответ в виде потока байт.

Inheritance
System.Object
HttpResponse
StreamHttpResponse
Inherited Members
HttpResponse.NoContent
HttpResponse.Ok
HttpResponse.NotFound
HttpResponse.Unauthorized
HttpResponse.Forbidden
HttpResponse.StatusCode
HttpResponse.ReasonPhrase
HttpResponse.Headers
HttpResponse.ContentType
HttpResponse.Content
HttpResponse.GetHeader(String)
HttpResponse.SetHeader(String, String)
Namespace:InfinniPlatform.Http
Assembly:InfinniPlatform.Core.Abstractions.dll
Syntax
public sealed class StreamHttpResponse : HttpResponse, IHttpResponse

Constructors

| Improve this Doc View Source

StreamHttpResponse(Func<Stream>, String)

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

Declaration
public StreamHttpResponse(Func<Stream> fileStream, string contentType = null)
Parameters
Type Name Description
Func<Stream> fileStream

Содержимое файла.

System.String contentType

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

| Improve this Doc View Source

StreamHttpResponse(Byte[], String)

Declaration
public StreamHttpResponse(byte[] fileContent, string contentType = null)
Parameters
Type Name Description
System.Byte[] fileContent
System.String contentType
| Improve this Doc View Source

StreamHttpResponse(String, String)

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

Declaration
public StreamHttpResponse(string filePath, string contentType = null)
Parameters
Type Name Description
System.String filePath

Путь к файлу.

System.String contentType

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

Properties

| Improve this Doc View Source

ContentLength

Размер файла в байтах.

Declaration
public long ? ContentLength { get; set; }
Property Value
Type Description
System.Nullable<System.Int64>
| Improve this Doc View Source

FileName

Наименование файла.

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

LastWriteTimeUtc

Время последнего изменения файла.

Declaration
public DateTime? LastWriteTimeUtc { get; set; }
Property Value
Type Description
System.Nullable<DateTime>

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)
ServiceExtentions.SetContentDispositionInline(StreamHttpResponse, String)
ServiceExtentions.SetContentDispositionAttachment(StreamHttpResponse, String)
CommonExtensions.ExecuteSilent<T>(T, Action<T>)
  • Improve this Doc
  • View Source
Back to top © Copyright Infinnity Solutions Ltd, 2010–2017.