asp.net.ph

HttpWorkerRequest Class

System.Web Namespace


Defines the base worker methods and enumerations used by ASP.NET to process requests.

HttpWorkerRequest Class Members

Collapse   Fields

Visibility Name Type
public static const HeaderAccept Int32
public static const HeaderAcceptCharset Int32
public static const HeaderAcceptEncoding Int32
public static const HeaderAcceptLanguage Int32
public static const HeaderAcceptRanges Int32
public static const HeaderAge Int32
public static const HeaderAllow Int32
public static const HeaderAuthorization Int32
public static const HeaderCacheControl Int32
public static const HeaderConnection Int32
public static const HeaderContentEncoding Int32
public static const HeaderContentLanguage Int32
public static const HeaderContentLength Int32
public static const HeaderContentLocation Int32
public static const HeaderContentMd5 Int32
public static const HeaderContentRange Int32
public static const HeaderContentType Int32
public static const HeaderCookie Int32
public static const HeaderDate Int32
public static const HeaderEtag Int32
public static const HeaderExpect Int32
public static const HeaderExpires Int32
public static const HeaderFrom Int32
public static const HeaderHost Int32
public static const HeaderIfMatch Int32
public static const HeaderIfModifiedSince Int32
public static const HeaderIfNoneMatch Int32
public static const HeaderIfRange Int32
public static const HeaderIfUnmodifiedSince Int32
public static const HeaderKeepAlive Int32
public static const HeaderLastModified Int32
public static const HeaderLocation Int32
public static const HeaderMaxForwards Int32
public static const HeaderPragma Int32
public static const HeaderProxyAuthenticate Int32
public static const HeaderProxyAuthorization Int32
public static const HeaderRange Int32
public static const HeaderReferer Int32
public static const HeaderRetryAfter Int32
public static const HeaderServer Int32
public static const HeaderSetCookie Int32
public static const HeaderTe Int32
public static const HeaderTrailer Int32
public static const HeaderTransferEncoding Int32
public static const HeaderUpgrade Int32
public static const HeaderUserAgent Int32
public static const HeaderVary Int32
public static const HeaderVia Int32
public static const HeaderWarning Int32
public static const HeaderWwwAuthenticate Int32
public static const ReasonCachePolicy Int32
public static const ReasonCacheSecurity Int32
public static const ReasonClientDisconnect Int32
public static const ReasonDefault Int32
public static const ReasonFileHandleCacheMiss Int32
public static const ReasonResponseCacheMiss Int32
public static const RequestHeaderMaximum Int32
public static const ResponseHeaderMaximum Int32

Collapse   Properties

Visibility Name Value Type Accessibility
public MachineConfigPath String [ Get ]
public MachineInstallDirectory String [ Get ]
public RequestTraceIdentifier Guid [ Get ]
public RootWebConfigPath String [ Get ]
public SupportsAsyncFlush Boolean [ Get ]
public SupportsAsyncRead Boolean [ Get ]

Collapse   Methods

Visibility Name Parameters Return Type
public BeginFlush ( AsyncCallback callback , Object state ) IAsyncResult
public BeginRead ( Byte buffer , Int32 offset , Int32 count , AsyncCallback callback , Object state ) IAsyncResult
public CloseConnection ( ) Void
public EndFlush ( IAsyncResult asyncResult ) Void
public EndOfRequest ( ) Void
public EndRead ( IAsyncResult asyncResult ) Int32
public FlushResponse ( Boolean finalFlush ) Void
public GetAppPath ( ) String
public GetAppPathTranslated ( ) String
public GetAppPoolID ( ) String
public GetBytesRead ( ) Int64
public GetClientCertificate ( ) Byte
public GetClientCertificateBinaryIssuer ( ) Byte
public GetClientCertificateEncoding ( ) Int32
public GetClientCertificatePublicKey ( ) Byte
public GetClientCertificateValidFrom ( ) DateTime
public GetClientCertificateValidUntil ( ) DateTime
public GetConnectionID ( ) Int64
public GetFilePath ( ) String
public GetFilePathTranslated ( ) String
public GetHttpVerbName ( ) String
public GetHttpVersion ( ) String
public GetKnownRequestHeader ( Int32 index ) String
public static GetKnownRequestHeaderIndex ( String header ) Int32
public static GetKnownRequestHeaderName ( Int32 index ) String
public static GetKnownResponseHeaderIndex ( String header ) Int32
public static GetKnownResponseHeaderName ( Int32 index ) String
public GetLocalAddress ( ) String
public GetLocalPort ( ) Int32
public GetPathInfo ( ) String
public GetPreloadedEntityBody ( Byte buffer , Int32 offset ) Int32
public GetPreloadedEntityBody ( ) Byte
public GetPreloadedEntityBodyLength ( ) Int32
public GetProtocol ( ) String
public GetQueryString ( ) String
public GetQueryStringRawBytes ( ) Byte
public GetRawUrl ( ) String
public GetRemoteAddress ( ) String
public GetRemoteName ( ) String
public GetRemotePort ( ) Int32
public GetRequestReason ( ) Int32
public GetServerName ( ) String
public GetServerVariable ( String name ) String
public static GetStatusDescription ( Int32 code ) String
public GetTotalEntityBodyLength ( ) Int32
public GetUnknownRequestHeader ( String name ) String
public GetUnknownRequestHeaders ( ) String
public GetUriPath ( ) String
public GetUrlContextID ( ) Int64
public GetUserToken ( ) IntPtr
public GetVirtualPathToken ( ) IntPtr
public HasEntityBody ( ) Boolean
public HeadersSent ( ) Boolean
public IsClientConnected ( ) Boolean
public IsEntireEntityBodyIsPreloaded ( ) Boolean
public IsSecure ( ) Boolean
public MapPath ( String virtualPath ) String
public ReadEntityBody ( Byte buffer , Int32 offset , Int32 size ) Int32
public ReadEntityBody ( Byte buffer , Int32 size ) Int32
public SendCalculatedContentLength ( Int64 contentLength ) Void
public SendCalculatedContentLength ( Int32 contentLength ) Void
public SendKnownResponseHeader ( Int32 index , String value ) Void
public SendResponseFromFile ( IntPtr handle , Int64 offset , Int64 length ) Void
public SendResponseFromFile ( String filename , Int64 offset , Int64 length ) Void
public SendResponseFromMemory ( Byte data , Int32 length ) Void
public SendResponseFromMemory ( IntPtr data , Int32 length ) Void
public SendStatus ( Int32 statusCode , String statusDescription ) Void
public SendUnknownResponseHeader ( String name , String value ) Void
public SetEndOfSendNotification ( EndOfSendNotification callback , Object extraData ) Void

Remarks

In most cases, your code will not deal with HttpWorkerRequest directly because request and response data are exposed through the HttpRequest and HttpResponse classes.

Some internal ASP.NET classes extend this class. If your code implements its own hosting environment, it will need to extend this class to call the ProcessRequest method.

In addition, your code could create a derived class for the purpose of child-request execution within a given application in order to pass its instance to ProcessRequest. In this case, the derived class should keep a reference to the current HttpWorkerRequest and delegate most of the methods to it.

Syntax


To set a property or call a method:

HttpWorkerRequest.propertyName = value;
HttpWorkerRequest.methodName ( arguments );
  C# VB

To return the value of a property or method:

Type var = HttpWorkerRequest.propertyName;
Type var = HttpWorkerRequest.methodName ( arguments );
  C# VB

See Also

HttpRuntime Class Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph