Prajna


HttpTools

Helper class to form a HTML page

Static members

Static memberDescription
AsyncContentToHttpStream(...)
Signature: (ctx:WebOperationContext * contentTask:Task<byte []> * fname:string) -> Task<Stream>

Convert content returned by an async task of specific metadata type (via extension of the content name) to a HTML page represented by Task, ready to be served in WCF

ContentToHttpStreamWithContentName(...)
Signature: (ctx:WebOperationContext * content:byte [] * fname:string) -> Stream

Convert content of specific metadata type (via extension of the content name) to a HTML page represented by stream, ready to be served in WCF

ContentToHttpStreamWithMetadata(...)
Signature: (ctx:WebOperationContext * content:byte [] * metaName:string) -> Stream

Convert content of specific metadata type to a HTML page represented by stream, ready to be served in WCF

FileToWebStreamAsync(ctx, fname)
Signature: (ctx:WebOperationContext * fname:string) -> Task<Stream>

Using async API, Convert a file to a HTML page represented by Task, ready to be served in WCF

FileToWebStreamSync(fname)
Signature: fname:string -> Stream

Convert file to a HTML page represented by Stream, ready to be served in WCF

PlainTextToHttpStream(ctx, content)
Signature: (ctx:WebOperationContext * content:string) -> Stream

Convert a plain string to a HTML page represented by stream, ready to be served in WCF

PlainTextToHttpStream(content)
Signature: content:string -> Stream

Convert a plain string to a HTML page represented by stream, ready to be served in WCF

PlainTextToWebPage(ctx, logTask)
Signature: (ctx:WebOperationContext * logTask:Task<string>) -> Task<Stream>

Convert a plaintext Task to a HTML page represented by Task, ready to be served in WCF

PlainTextToWebPageTask(s)
Signature: s:string -> Task<Stream>

Using a plaintext string to a HTML page represented by Task, ready to be served in WCF

Fork me on GitHub