ReadWeb Class
Downloads from HTTP and outputs the results as new documents.
Namespace
Statiq.Core
Interfaces
Base Types
graph BT Type-->Base0["Module"] click Base0 "/api/Statiq.Common/Module" Base0-->Base1["object"] Type-.->Interface0["IModule"] click Interface0 "/api/Statiq.Common/IModule" Type["ReadWeb"] class Type type-node

Syntax

public class ReadWeb : Module, IModule

Remarks

The original input documents are ignored and are not part of the output of this module.

Constructors

Name Summary
ReadWeb(string, WebRequestHeaders) Downloads the specified URI with the specified request header.
ReadWeb(string[]) Downloads the specified URIs with a default request header.

Methods

Name Return Value Summary
AfterExecution(IExecutionContext, ExecutionOutputs) void
Called after each module execution.
Inherited from Module
AfterExecutionAsync(IExecutionContext, ExecutionOutputs) Task
Called after each module execution.
Inherited from Module
BeforeExecution(IExecutionContext) void
Called before each module execution.
Inherited from Module
BeforeExecutionAsync(IExecutionContext) Task
Called before each module execution.
Inherited from Module
CacheResponses(bool) ReadWeb
Indicates whether the downloaded response should be cached between regenerations.
ExecuteAsync(IExecutionContext) Task<IEnumerable<IDocument>>
This should not be called directly, instead call IExecutionContext.Execute() if you need to execute a module from within another module.
Inherited from Module
ExecuteContextAsync(IExecutionContext) Task<IEnumerable<IDocument>>
Executes the module once for all input documents.
ExecuteInputAsync(IDocument, IExecutionContext) Task<IEnumerable<IDocument>>
Executes the module.
Inherited from Module
Finally(IExecutionContext) void
Called after each module execution, even if an exception is thrown during execution.
Inherited from Module
FinallyAsync(IExecutionContext) Task
Called after each module execution, even if an exception is thrown during execution.
Inherited from Module
WithRequests(WebRequest[]) ReadWeb
Downloads the specified requests.
WithUri(string, WebRequestHeaders) ReadWeb
Downloads the specified URI with the specified request header.
WithUris(string[]) ReadWeb
Downloads the specified URIs with a default request header.

Extension Methods