Name
SimpleWorkerRequest
Synopsis
This class extends the abstract System.Web.HttpWorkerRequest class.
It provides features that allow you to read the incoming HTTP request and
send an appropriate HTTP response. You can retrieve the URL request with the query string appended
(through GetRawUrl()), a server variable
by name from a dictionary collection (GetServerVariable()),
and the physical file path of the requested URL (GetFilePathTranslated()).
You send a response as series of bytes with the SendResponseFromFile()
or SendResponseFromMemory() methods. Use FlushResponse() to send all pending data to the
client. If you want to provide higher-level methods or properties, such as those found in the System.Web.HttpResponse and System.Web.HttpRequest classes,
you should extend SimpleWorkerRequest.
Public Class SimpleWorkerRequest : Inherits System.Web.HttpWorkerRequest ' Public Constructors Public Sub New(ByVal appVirtualDir As String, ByVal appPhysicalDir As String, ByVal page As String, ByVal query As String, ByVal output As System.IO.TextWriter) Public Sub New(ByVal page As String, ByVal query As String, ByVal output As System.IO.TextWriter) ' Public Instance Properties Overrides Public ReadOnly Property MachineConfigPath As String Overrides Public ReadOnly Property MachineInstallDirectory As String ' Public Instance Methods Overrides Public Sub EndOfRequest() Overrides Public Sub FlushResponse( ByVal finalFlush As Boolean) Overrides Public Function GetAppPath() As String Overrides ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access