C# Class Nancy.EmbeddedContent.EmbeddedResponse

The class responsible for returning responses from embedded content.
Inheritance: Response
Afficher le fichier Open project: jugglingnutcase/Nancy.EmbeddedContent

Méthodes publiques

Méthode Description
EmbeddedResponse ( Assembly assembly, string resourcePath, string name, System.DateTime lastModifiedDate, NancyContext context = null ) : Nancy.Helpers

Creates an EmbeddedResponse

EmbeddedResponse ( Assembly assembly, string resourcePath, string name, NancyContext context = null ) : Nancy.Helpers

Creates an EmbeddedResponse

Private Methods

Méthode Description
ByteArrayToString ( byte data ) : string
EmbeddedResponse ( ) : Nancy.Helpers
GenerateETag ( Stream stream ) : string
GetFileNameFromResourceName ( string resourcePath, string resourceName ) : string
GetResourceContent ( Assembly assembly, string resourcePath, string name ) : Stream

Method Details

EmbeddedResponse() public méthode

Creates an EmbeddedResponse
public EmbeddedResponse ( Assembly assembly, string resourcePath, string name, System.DateTime lastModifiedDate, NancyContext context = null ) : Nancy.Helpers
assembly System.Reflection.Assembly The assembly containing the embedded file with which to respond
resourcePath string The path to the embedded resource
name string The name of the resource
lastModifiedDate System.DateTime The date that will be compared against modified headers to determine if a NotModified response should be sent
context NancyContext The Nancy context
Résultat Nancy.Helpers

EmbeddedResponse() public méthode

Creates an EmbeddedResponse
public EmbeddedResponse ( Assembly assembly, string resourcePath, string name, NancyContext context = null ) : Nancy.Helpers
assembly System.Reflection.Assembly The assembly containing the embedded file with which to respond
resourcePath string The path to the embedded resource
name string The name of the resource
context NancyContext The Nancy context
Résultat Nancy.Helpers