HttpWorkerRequest HttpWorkerRequest HttpWorkerRequest HttpWorkerRequest Class

定義

這個抽象類別定義 ASP.NET Managed 程式碼處理要求所使用的基底背景工作方法和列舉類型 (Enumeration)。This abstract class defines the base worker methods and enumerations used by ASP.NET managed code to process requests.

public ref class HttpWorkerRequest abstract
[System.Runtime.InteropServices.ComVisible(false)]
public abstract class HttpWorkerRequest
type HttpWorkerRequest = class
Public MustInherit Class HttpWorkerRequest
繼承
HttpWorkerRequestHttpWorkerRequestHttpWorkerRequestHttpWorkerRequest
衍生
屬性

備註

在大部分情況下,您的程式碼將不會處理HttpWorkerRequest直接因為要求和回應資料會透過公開HttpRequestHttpResponse類別。In most cases, your code will not deal with HttpWorkerRequest directly because request and response data are exposed through the HttpRequest and HttpResponse classes. 某些內部 ASP.NET 類別會擴充此類別。Some internal ASP.NET classes extend this class. 如果您的程式碼會實作自己的裝載環境,它將需要擴充此類別來呼叫ProcessRequest方法。If your code implements its own hosting environment, it will need to extend this class to call the ProcessRequest method. 此外,您的程式碼可以建立衍生的類別內指定的應用程式,才能將傳遞其執行個體的子要求執行為了ProcessRequestIn 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. 在此情況下,衍生的類別應該保留目前的參考HttpWorkerRequest和委派大部分給它的方法。In this case, the derived class should keep a reference to the current HttpWorkerRequest and delegate most of the methods to it.

建構函式

HttpWorkerRequest() HttpWorkerRequest() HttpWorkerRequest() HttpWorkerRequest()

初始化 HttpWorkerRequest 類別的新執行個體。Initializes a new instance of the HttpWorkerRequest class.

欄位

HeaderAccept HeaderAccept HeaderAccept HeaderAccept

指定 Accept HTTP 標頭的索引編號。Specifies the index number for the Accept HTTP header.

HeaderAcceptCharset HeaderAcceptCharset HeaderAcceptCharset HeaderAcceptCharset

指定 Accept-Charset HTTP 標頭的索引編號。Specifies the index number for the Accept-Charset HTTP header.

HeaderAcceptEncoding HeaderAcceptEncoding HeaderAcceptEncoding HeaderAcceptEncoding

指定 Accept-Encoding HTTP 標頭的索引編號。Specifies the index number for the Accept-Encoding HTTP header.

HeaderAcceptLanguage HeaderAcceptLanguage HeaderAcceptLanguage HeaderAcceptLanguage

指定 Accept-Language HTTP 標頭的索引編號。Specifies the index number for the Accept-Language HTTP header.

HeaderAcceptRanges HeaderAcceptRanges HeaderAcceptRanges HeaderAcceptRanges

指定 Accept-Ranges HTTP 標頭的索引編號。Specifies the index number for the Accept-Ranges HTTP header.

HeaderAge HeaderAge HeaderAge HeaderAge

指定 Age HTTP 標頭的索引編號。Specifies the index number for the Age HTTP header.

HeaderAllow HeaderAllow HeaderAllow HeaderAllow

指定 Allow HTTP 標頭的索引編號。Specifies the index number for the Allow HTTP header.

HeaderAuthorization HeaderAuthorization HeaderAuthorization HeaderAuthorization

指定 Authorization HTTP 標頭的索引編號。Specifies the index number for the Authorization HTTP header.

HeaderCacheControl HeaderCacheControl HeaderCacheControl HeaderCacheControl

表示 HTTP Cache-Control HTTP 標頭的索引。The index that represents the HTTP Cache-Control HTTP header.

HeaderConnection HeaderConnection HeaderConnection HeaderConnection

指定 Connection HTTP 標頭的索引編號。Specifies the index number for the Connection HTTP header.

HeaderContentEncoding HeaderContentEncoding HeaderContentEncoding HeaderContentEncoding

指定 Content-Encoding HTTP 標頭的索引編號。Specifies the index number for the Content-Encoding HTTP header.

HeaderContentLanguage HeaderContentLanguage HeaderContentLanguage HeaderContentLanguage

指定 Content-Language HTTP 標頭的索引編號。Specifies the index number for the Content-Language HTTP header.

HeaderContentLength HeaderContentLength HeaderContentLength HeaderContentLength

指定 Content-Length HTTP 標頭的索引編號。Specifies the index number for the Content-Length HTTP header.

HeaderContentLocation HeaderContentLocation HeaderContentLocation HeaderContentLocation

指定 Content-Location HTTP 標頭的索引編號。Specifies the index number for the Content-Location HTTP header.

HeaderContentMd5 HeaderContentMd5 HeaderContentMd5 HeaderContentMd5

指定 Content-MD5 HTTP 標頭的索引編號。Specifies the index number for the Content-MD5 HTTP header.

HeaderContentRange HeaderContentRange HeaderContentRange HeaderContentRange

指定 Content-Range HTTP 標頭的索引編號。Specifies the index number for the Content-Range HTTP header.

HeaderContentType HeaderContentType HeaderContentType HeaderContentType

指定 Content-Type HTTP 標頭的索引編號。Specifies the index number for the Content-Type HTTP header.

HeaderCookie HeaderCookie HeaderCookie HeaderCookie

指定 Cookie HTTP 標頭的索引編號。Specifies the index number for the Cookie HTTP header.

HeaderDate HeaderDate HeaderDate HeaderDate

指定 Date HTTP 標頭的索引編號。Specifies the index number for the Date HTTP header.

HeaderEtag HeaderEtag HeaderEtag HeaderEtag

指定 ETag HTTP 標頭的索引編號。Specifies the index number for the ETag HTTP header.

HeaderExpect HeaderExpect HeaderExpect HeaderExpect

指定 Except HTTP 標頭的索引編號。Specifies the index number for the Except HTTP header.

HeaderExpires HeaderExpires HeaderExpires HeaderExpires

指定 Expires HTTP 標頭的索引編號。Specifies the index number for the Expires HTTP header.

HeaderFrom HeaderFrom HeaderFrom HeaderFrom

指定 From HTTP 標頭的索引編號。Specifies the index number for the From HTTP header.

HeaderHost HeaderHost HeaderHost HeaderHost

指定 Host HTTP 標頭的索引編號。Specifies the index number for the Host HTTP header.

HeaderIfMatch HeaderIfMatch HeaderIfMatch HeaderIfMatch

指定 If-Match HTTP 標頭的索引編號。Specifies the index number for the If-Match HTTP header.

HeaderIfModifiedSince HeaderIfModifiedSince HeaderIfModifiedSince HeaderIfModifiedSince

指定 If-Modified-Since HTTP 標頭的索引編號。Specifies the index number for the If-Modified-Since HTTP header.

HeaderIfNoneMatch HeaderIfNoneMatch HeaderIfNoneMatch HeaderIfNoneMatch

指定 If-None-Match HTTP 標頭的索引編號。Specifies the index number for the If-None-Match HTTP header.

HeaderIfRange HeaderIfRange HeaderIfRange HeaderIfRange

指定 If-Range HTTP 標頭的索引編號。Specifies the index number for the If-Range HTTP header.

HeaderIfUnmodifiedSince HeaderIfUnmodifiedSince HeaderIfUnmodifiedSince HeaderIfUnmodifiedSince

指定 If-Unmodified-Since HTTP 標頭的索引編號。Specifies the index number for the If-Unmodified-Since HTTP header.

HeaderKeepAlive HeaderKeepAlive HeaderKeepAlive HeaderKeepAlive

指定 Keep-Alive HTTP 標頭的索引編號。Specifies the index number for the Keep-Alive HTTP header.

HeaderLastModified HeaderLastModified HeaderLastModified HeaderLastModified

指定 Last-Modified HTTP 標頭的索引編號。Specifies the index number for the Last-Modified HTTP header.

HeaderLocation HeaderLocation HeaderLocation HeaderLocation

指定 Location HTTP 標頭的索引編號。Specifies the index number for the Location HTTP header.

HeaderMaxForwards HeaderMaxForwards HeaderMaxForwards HeaderMaxForwards

指定 Max-Forwards HTTP 標頭的索引編號。Specifies the index number for the Max-Forwards HTTP header.

HeaderPragma HeaderPragma HeaderPragma HeaderPragma

指定 Pragma HTTP 標頭的索引編號。Specifies the index number for the Pragma HTTP header.

HeaderProxyAuthenticate HeaderProxyAuthenticate HeaderProxyAuthenticate HeaderProxyAuthenticate

指定 Proxy-Authenticate HTTP 標頭的索引編號。Specifies the index number for the Proxy-Authenticate HTTP header.

HeaderProxyAuthorization HeaderProxyAuthorization HeaderProxyAuthorization HeaderProxyAuthorization

指定 Proxy-Authorization HTTP 標頭的索引編號。Specifies the index number for the Proxy-Authorization HTTP header.

HeaderRange HeaderRange HeaderRange HeaderRange

指定 Range HTTP 標頭的索引編號。Specifies the index number for the Range HTTP header.

HeaderReferer HeaderReferer HeaderReferer HeaderReferer

指定 Referer HTTP 標頭的索引編號。Specifies the index number for the Referer HTTP header.

HeaderRetryAfter HeaderRetryAfter HeaderRetryAfter HeaderRetryAfter

指定 Retry-After HTTP 標頭的索引編號。Specifies the index number for the Retry-After HTTP header.

HeaderServer HeaderServer HeaderServer HeaderServer

指定 Server HTTP 標頭的索引編號。Specifies the index number for the Server HTTP header.

HeaderSetCookie HeaderSetCookie HeaderSetCookie HeaderSetCookie

指定 Set-Cookie HTTP 標頭的索引編號。Specifies the index number for the Set-Cookie HTTP header.

HeaderTe HeaderTe HeaderTe HeaderTe

指定 TE HTTP 標頭的索引編號。Specifies the index number for the TE HTTP header.

HeaderTrailer HeaderTrailer HeaderTrailer HeaderTrailer

指定 Trailer HTTP 標頭的索引編號。Specifies the index number for the Trailer HTTP header.

HeaderTransferEncoding HeaderTransferEncoding HeaderTransferEncoding HeaderTransferEncoding

指定 Transfer-Encoding HTTP 標頭的索引編號。Specifies the index number for the Transfer-Encoding HTTP header.

HeaderUpgrade HeaderUpgrade HeaderUpgrade HeaderUpgrade

指定 Upgrade HTTP 標頭的索引編號。Specifies the index number for the Upgrade HTTP header.

HeaderUserAgent HeaderUserAgent HeaderUserAgent HeaderUserAgent

指定 User-Agent HTTP 標頭的索引編號。Specifies the index number for the User-Agent HTTP header.

HeaderVary HeaderVary HeaderVary HeaderVary

指定 Vary HTTP 標頭的索引編號。Specifies the index number for the Vary HTTP header.

HeaderVia HeaderVia HeaderVia HeaderVia

指定 Via HTTP 標頭的索引編號。Specifies the index number for the Via HTTP header.

HeaderWarning HeaderWarning HeaderWarning HeaderWarning

指定 Warning HTTP 標頭的索引編號。Specifies the index number for the Warning HTTP header.

HeaderWwwAuthenticate HeaderWwwAuthenticate HeaderWwwAuthenticate HeaderWwwAuthenticate

指定 WWW-Authenticate HTTP 標頭的索引編號。Specifies the index number for the WWW-Authenticate HTTP header.

ReasonCachePolicy ReasonCachePolicy ReasonCachePolicy ReasonCachePolicy

指定要求的原因。Specifies a reason for the request.

ReasonCacheSecurity ReasonCacheSecurity ReasonCacheSecurity ReasonCacheSecurity

指定要求的原因。Specifies a reason for the request.

ReasonClientDisconnect ReasonClientDisconnect ReasonClientDisconnect ReasonClientDisconnect

指定要求的原因。Specifies a reason for the request.

ReasonDefault ReasonDefault ReasonDefault ReasonDefault

指定要求的原因。Specifies a reason for the request. 預設值為 ReasonResponseCacheMissThe default value is ReasonResponseCacheMiss.

ReasonFileHandleCacheMiss ReasonFileHandleCacheMiss ReasonFileHandleCacheMiss ReasonFileHandleCacheMiss

指定要求的原因。Specifies a reason for the request.

ReasonResponseCacheMiss ReasonResponseCacheMiss ReasonResponseCacheMiss ReasonResponseCacheMiss

指定要求的原因。Specifies a reason for the request.

RequestHeaderMaximum RequestHeaderMaximum RequestHeaderMaximum RequestHeaderMaximum

指定 Maximum HTTP 要求標頭的索引編號。Specifies the index number for the Maximum HTTP request header.

ResponseHeaderMaximum ResponseHeaderMaximum ResponseHeaderMaximum ResponseHeaderMaximum

指定 Maximum HTTP 回應標頭的索引編號。Specifies the index number for the Maximum HTTP response header.

屬性

MachineConfigPath MachineConfigPath MachineConfigPath MachineConfigPath

取得 Machine.config 檔的完整實體路徑。Gets the full physical path to the Machine.config file.

MachineInstallDirectory MachineInstallDirectory MachineInstallDirectory MachineInstallDirectory

取得安裝 ASP.NET 二進位碼檔案位置的目錄的實體路徑。Gets the physical path to the directory where the ASP.NET binaries are installed.

RequestTraceIdentifier RequestTraceIdentifier RequestTraceIdentifier RequestTraceIdentifier

取得目前要求對應的 Windows 事件追蹤 ID。Gets the corresponding Event Tracking for Windows trace ID for the current request.

RootWebConfigPath RootWebConfigPath RootWebConfigPath RootWebConfigPath

取得根 Web.config 檔的完整實體路徑。Gets the full physical path to the root Web.config file.

SupportsAsyncFlush SupportsAsyncFlush SupportsAsyncFlush SupportsAsyncFlush

取得值,指出是否支援非同步清除作業。Gets a value that indicates whether asynchronous flush operations are supported.

SupportsAsyncRead SupportsAsyncRead SupportsAsyncRead SupportsAsyncRead

取得值,指出是否支援非同步讀取作業。Gets a value that indicates whether asynchronous read operations are supported.

方法

BeginFlush(AsyncCallback, Object) BeginFlush(AsyncCallback, Object) BeginFlush(AsyncCallback, Object) BeginFlush(AsyncCallback, Object)

將目前已緩衝的回應傳送到用戶端。Sends the currently buffered response to the client.

BeginRead(Byte[], Int32, Int32, AsyncCallback, Object) BeginRead(Byte[], Int32, Int32, AsyncCallback, Object) BeginRead(Byte[], Int32, Int32, AsyncCallback, Object) BeginRead(Byte[], Int32, Int32, AsyncCallback, Object)

開始進行要求之實體內容的非同步讀取作業。Begins an asynchronous read operation of the request entity body.

CloseConnection() CloseConnection() CloseConnection() CloseConnection()

結束與用戶端的連接。Terminates the connection with the client.

EndFlush(IAsyncResult) EndFlush(IAsyncResult) EndFlush(IAsyncResult) EndFlush(IAsyncResult)

等候暫止的非同步清除作業完成。Waits for the pending asynchronous flush operation to complete.

EndOfRequest() EndOfRequest() EndOfRequest() EndOfRequest()

供 Runtime 使用來告知 HttpWorkerRequest 目前要求的要求處理已經完成。Used by the runtime to notify the HttpWorkerRequest that request processing for the current request is complete.

EndRead(IAsyncResult) EndRead(IAsyncResult) EndRead(IAsyncResult) EndRead(IAsyncResult)

等候暫止的非同步讀取作業完成。Waits for the pending asynchronous read operation to complete.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
FlushResponse(Boolean) FlushResponse(Boolean) FlushResponse(Boolean) FlushResponse(Boolean)

將所有的暫止回應資料傳送至用戶端。Sends all pending response data to the client.

GetAppPath() GetAppPath() GetAppPath() GetAppPath()

傳回目前正在執行之伺服器應用程式的虛擬路徑。Returns the virtual path to the currently executing server application.

GetAppPathTranslated() GetAppPathTranslated() GetAppPathTranslated() GetAppPathTranslated()

將實體路徑傳回至目前正在執行的伺服器應用程式。Returns the physical path to the currently executing server application.

GetAppPoolID() GetAppPoolID() GetAppPoolID() GetAppPoolID()

在衍生類別中覆寫時,傳回目前 URL 的應用程式集區 ID。When overridden in a derived class, returns the application pool ID for the current URL.

GetBytesRead() GetBytesRead() GetBytesRead() GetBytesRead()

取得從用戶端讀入的位元組數。Gets the number of bytes read in from the client.

GetClientCertificate() GetClientCertificate() GetClientCertificate() GetClientCertificate()

在衍生類別中覆寫時,從用戶端發出的要求中,取得憑證欄位 (依 X.509 標準指定)。When overridden in a derived class, gets the certification fields (specified in the X.509 standard) from a request issued by the client.

GetClientCertificateBinaryIssuer() GetClientCertificateBinaryIssuer() GetClientCertificateBinaryIssuer() GetClientCertificateBinaryIssuer()

以二進位格式,取得憑證簽發者。Gets the certificate issuer, in binary format.

GetClientCertificateEncoding() GetClientCertificateEncoding() GetClientCertificateEncoding() GetClientCertificateEncoding()

在衍生類別中覆寫時,傳回用戶端憑證編碼所使用的 Encoding 物件。When overridden in a derived class, returns the Encoding object in which the client certificate was encoded.

GetClientCertificatePublicKey() GetClientCertificatePublicKey() GetClientCertificatePublicKey() GetClientCertificatePublicKey()

在衍生類別中覆寫時,取得與目前憑證關聯的 PublicKey 物件。When overridden in a derived class, gets a PublicKey object associated with the client certificate.

GetClientCertificateValidFrom() GetClientCertificateValidFrom() GetClientCertificateValidFrom() GetClientCertificateValidFrom()

在衍生類別中覆寫時,取得憑證生效的日期。When overridden in a derived class, gets the date when the certificate becomes valid. 日期會隨著國際設定而變。The date varies with international settings.

GetClientCertificateValidUntil() GetClientCertificateValidUntil() GetClientCertificateValidUntil() GetClientCertificateValidUntil()

取得憑證到期日。Gets the certificate expiration date.

GetConnectionID() GetConnectionID() GetConnectionID() GetConnectionID()

在衍生類別中覆寫時,傳回目前連接的 ID。When overridden in a derived class, returns the ID of the current connection.

GetFilePath() GetFilePath() GetFilePath() GetFilePath()

在衍生類別中覆寫時,傳回所要求之 URI 的虛擬路徑。When overridden in a derived class, returns the virtual path to the requested URI.

GetFilePathTranslated() GetFilePathTranslated() GetFilePathTranslated() GetFilePathTranslated()

傳回所要求 URI 的實體檔案路徑 (並且將它從虛擬路徑轉譯為實體路徑:例如,「/proj1/page.aspx」為「c:\dir\page.aspx」)。Returns the physical file path to the requested URI (and translates it from virtual path to physical path: for example, "/proj1/page.aspx" to "c:\dir\page.aspx")

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetHttpVerbName() GetHttpVerbName() GetHttpVerbName() GetHttpVerbName()

傳回要求標頭的指定成員。Returns the specified member of the request header.

GetHttpVersion() GetHttpVersion() GetHttpVersion() GetHttpVersion()

提供要求的 HTTP 版本 (例如,「HTTP/1.1」) 的存取。Provides access to the HTTP version of the request (for example, "HTTP/1.1").

GetKnownRequestHeader(Int32) GetKnownRequestHeader(Int32) GetKnownRequestHeader(Int32) GetKnownRequestHeader(Int32)

傳回對應至指定索引的標準 HTTP 要求標頭。Returns the standard HTTP request header that corresponds to the specified index.

GetKnownRequestHeaderIndex(String) GetKnownRequestHeaderIndex(String) GetKnownRequestHeaderIndex(String) GetKnownRequestHeaderIndex(String)

傳回指定 HTTP 要求標頭的索引編號。Returns the index number of the specified HTTP request header.

GetKnownRequestHeaderName(Int32) GetKnownRequestHeaderName(Int32) GetKnownRequestHeaderName(Int32) GetKnownRequestHeaderName(Int32)

傳回指定 HTTP 要求標頭的名稱。Returns the name of the specified HTTP request header.

GetKnownResponseHeaderIndex(String) GetKnownResponseHeaderIndex(String) GetKnownResponseHeaderIndex(String) GetKnownResponseHeaderIndex(String)

傳回指定的 HTTP 回應標頭的索引編號。Returns the index number of the specified HTTP response header.

GetKnownResponseHeaderName(Int32) GetKnownResponseHeaderName(Int32) GetKnownResponseHeaderName(Int32) GetKnownResponseHeaderName(Int32)

傳回指定的 HTTP 回應標頭的名稱。Returns the name of the specified HTTP response header.

GetLocalAddress() GetLocalAddress() GetLocalAddress() GetLocalAddress()

提供要求標頭之指定成員的存取權限。Provides access to the specified member of the request header.

GetLocalPort() GetLocalPort() GetLocalPort() GetLocalPort()

提供要求標頭之指定成員的存取權限。Provides access to the specified member of the request header.

GetPathInfo() GetPathInfo() GetPathInfo() GetPathInfo()

傳回具有 URL 擴充部分之資源的額外路徑資訊。Returns additional path information for a resource with a URL extension. 也就是,對於路徑 /virdir/page.html/tail,GetPathInfo 值是 /tail。That is, for the path /virdir/page.html/tail, the GetPathInfo value is /tail.

GetPreloadedEntityBody() GetPreloadedEntityBody() GetPreloadedEntityBody() GetPreloadedEntityBody()

傳回已經讀取的 HTTP 要求主體的部分。Returns the portion of the HTTP request body that has already been read.

GetPreloadedEntityBody(Byte[], Int32) GetPreloadedEntityBody(Byte[], Int32) GetPreloadedEntityBody(Byte[], Int32) GetPreloadedEntityBody(Byte[], Int32)

使用指定的緩衝資料和位元組位移,取得目前已經讀取的 HTTP 要求主體的部分。Gets the portion of the HTTP request body that has currently been read by using the specified buffer data and byte offset.

GetPreloadedEntityBodyLength() GetPreloadedEntityBodyLength() GetPreloadedEntityBodyLength() GetPreloadedEntityBodyLength()

取得目前已經讀取的 HTTP 要求主體的部分長度。Gets the length of the portion of the HTTP request body that has currently been read.

GetProtocol() GetProtocol() GetProtocol() GetProtocol()

當在衍生類別中覆寫時,傳回 HTTP 通訊協定 (HTTP 或 HTTPS)。When overridden in a derived class, returns the HTTP protocol (HTTP or HTTPS).

GetQueryString() GetQueryString() GetQueryString() GetQueryString()

傳回在要求 URL 中指定的查詢字串。Returns the query string specified in the request URL.

GetQueryStringRawBytes() GetQueryStringRawBytes() GetQueryStringRawBytes() GetQueryStringRawBytes()

在衍生類別中覆寫時,將回應查詢字串當做位元組陣列傳回。When overridden in a derived class, returns the response query string as an array of bytes.

GetRawUrl() GetRawUrl() GetRawUrl() GetRawUrl()

傳回附加查詢字串之要求標頭中包含的 URL 路徑。Returns the URL path contained in the request header with the query string appended.

GetRemoteAddress() GetRemoteAddress() GetRemoteAddress() GetRemoteAddress()

提供要求標頭之指定成員的存取權限。Provides access to the specified member of the request header.

GetRemoteName() GetRemoteName() GetRemoteName() GetRemoteName()

在衍生類別中覆寫時,傳回用戶端電腦的名稱。When overridden in a derived class, returns the name of the client computer.

GetRemotePort() GetRemotePort() GetRemotePort() GetRemotePort()

提供要求標頭之指定成員的存取權限。Provides access to the specified member of the request header.

GetRequestReason() GetRequestReason() GetRequestReason() GetRequestReason()

在衍生類別中覆寫時,傳回要求的原因。When overridden in a derived class, returns the reason for the request.

GetServerName() GetServerName() GetServerName() GetServerName()

在衍生類別中覆寫時,傳回本機伺服器的名稱。When overridden in a derived class, returns the name of the local server.

GetServerVariable(String) GetServerVariable(String) GetServerVariable(String) GetServerVariable(String)

傳回與要求相關之伺服器變數字典的單一伺服器變數。Returns a single server variable from a dictionary of server variables associated with the request.

GetStatusDescription(Int32) GetStatusDescription(Int32) GetStatusDescription(Int32) GetStatusDescription(Int32)

傳回描述指定 HTTP 狀態碼名稱的字串。Returns a string that describes the name of the specified HTTP status code.

GetTotalEntityBodyLength() GetTotalEntityBodyLength() GetTotalEntityBodyLength() GetTotalEntityBodyLength()

取得整個 HTTP 要求主體的長度。Gets the length of the entire HTTP request body.

GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
GetUnknownRequestHeader(String) GetUnknownRequestHeader(String) GetUnknownRequestHeader(String) GetUnknownRequestHeader(String)

傳回非標準 HTTP 要求標頭值。Returns a nonstandard HTTP request header value.

GetUnknownRequestHeaders() GetUnknownRequestHeaders() GetUnknownRequestHeaders() GetUnknownRequestHeaders()

取得所有非標準 HTTP 標頭名稱值配對。Get all nonstandard HTTP header name-value pairs.

GetUriPath() GetUriPath() GetUriPath() GetUriPath()

傳回所要求 URI 的虛擬路徑。Returns the virtual path to the requested URI.

GetUrlContextID() GetUrlContextID() GetUrlContextID() GetUrlContextID()

在衍生類別中覆寫時,傳回目前連接的內容 ID。When overridden in a derived class, returns the context ID of the current connection.

GetUserToken() GetUserToken() GetUserToken() GetUserToken()

在衍生類別中覆寫時,傳回用戶端的 Impersonation Token。When overridden in a derived class, returns the client's impersonation token.

GetVirtualPathToken() GetVirtualPathToken() GetVirtualPathToken() GetVirtualPathToken()

取得要求虛擬路徑的模擬語彙基元。Gets the impersonation token for the request virtual path.

HasEntityBody() HasEntityBody() HasEntityBody() HasEntityBody()

傳回值,指出要求是否包含主體資料。Returns a value indicating whether the request contains body data.

HeadersSent() HeadersSent() HeadersSent() HeadersSent()

傳回值,指出 HTTP 回應標頭是否已經傳送到目前要求的用戶端。Returns a value indicating whether HTTP response headers have been sent to the client for the current request.

IsClientConnected() IsClientConnected() IsClientConnected() IsClientConnected()

傳回值,指出用戶端連接是否仍然有作用。Returns a value indicating whether the client connection is still active.

IsEntireEntityBodyIsPreloaded() IsEntireEntityBodyIsPreloaded() IsEntireEntityBodyIsPreloaded() IsEntireEntityBodyIsPreloaded()

傳回值,指出所有要求資料是否可以使用,而且不需要從用戶端進一步讀取。Returns a value indicating whether all request data is available and no further reads from the client are required.

IsSecure() IsSecure() IsSecure() IsSecure()

傳回值,指出連線是否使用 SSL。Returns a value indicating whether the connection uses SSL.

MapPath(String) MapPath(String) MapPath(String) MapPath(String)

傳回對應於指定虛擬路徑的實體路徑。Returns the physical path corresponding to the specified virtual path.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ReadEntityBody(Byte[], Int32) ReadEntityBody(Byte[], Int32) ReadEntityBody(Byte[], Int32) ReadEntityBody(Byte[], Int32)

讀取來自用戶端的要求資料 (沒有事先載入時)。Reads request data from the client (when not preloaded).

ReadEntityBody(Byte[], Int32, Int32) ReadEntityBody(Byte[], Int32, Int32) ReadEntityBody(Byte[], Int32, Int32) ReadEntityBody(Byte[], Int32, Int32)

使用要讀取之指定的緩衝區、位元組位移和最大位元組,從用戶端讀取要求資料 (不預先載入時)。Reads request data from the client (when not preloaded) by using the specified buffer to read from, byte offset, and maximum bytes.

SendCalculatedContentLength(Int32) SendCalculatedContentLength(Int32) SendCalculatedContentLength(Int32) SendCalculatedContentLength(Int32)

在訊息主體小於或等於 2 GB 的回應上,加入 Content-Length HTTP 標頭。Adds a Content-Length HTTP header to the response for message bodies that are less than or equal to 2 GB.

SendCalculatedContentLength(Int64) SendCalculatedContentLength(Int64) SendCalculatedContentLength(Int64) SendCalculatedContentLength(Int64)

在訊息主體大於 2 GB 的回應上,加入 Content-Length HTTP 標頭。Adds a Content-Length HTTP header to the response for message bodies that are greater than 2 GB.

SendKnownResponseHeader(Int32, String) SendKnownResponseHeader(Int32, String) SendKnownResponseHeader(Int32, String) SendKnownResponseHeader(Int32, String)

將標準 HTTP 標頭加入回應。Adds a standard HTTP header to the response.

SendResponseFromFile(IntPtr, Int64, Int64) SendResponseFromFile(IntPtr, Int64, Int64) SendResponseFromFile(IntPtr, Int64, Int64) SendResponseFromFile(IntPtr, Int64, Int64)

將指定檔案的內容加入回應,並且指定檔案裡的開始位置和傳送的位元組數目。Adds the contents of the specified file to the response and specifies the starting position in the file and the number of bytes to send.

SendResponseFromFile(String, Int64, Int64) SendResponseFromFile(String, Int64, Int64) SendResponseFromFile(String, Int64, Int64) SendResponseFromFile(String, Int64, Int64)

將指定檔案的內容加入回應,並且指定檔案裡的開始位置和傳送的位元組數目。Adds the contents of the specified file to the response and specifies the starting position in the file and the number of bytes to send.

SendResponseFromMemory(Byte[], Int32) SendResponseFromMemory(Byte[], Int32) SendResponseFromMemory(Byte[], Int32) SendResponseFromMemory(Byte[], Int32)

將指定的位元組數目從位元組陣列加入回應。Adds the specified number of bytes from a byte array to the response.

SendResponseFromMemory(IntPtr, Int32) SendResponseFromMemory(IntPtr, Int32) SendResponseFromMemory(IntPtr, Int32) SendResponseFromMemory(IntPtr, Int32)

將指定的位元組數目從記憶體區塊加入回應。Adds the specified number of bytes from a block of memory to the response.

SendStatus(Int32, String) SendStatus(Int32, String) SendStatus(Int32, String) SendStatus(Int32, String)

指定回應的 HTTP 狀態碼和狀態描述,例如 SendStatus(200, "Ok")Specifies the HTTP status code and status description of the response, such as SendStatus(200, "Ok").

SendUnknownResponseHeader(String, String) SendUnknownResponseHeader(String, String) SendUnknownResponseHeader(String, String) SendUnknownResponseHeader(String, String)

將非標準的 HTTP 標頭加入回應。Adds a nonstandard HTTP header to the response.

SetEndOfSendNotification(HttpWorkerRequest+EndOfSendNotification, Object) SetEndOfSendNotification(HttpWorkerRequest+EndOfSendNotification, Object) SetEndOfSendNotification(HttpWorkerRequest+EndOfSendNotification, Object) SetEndOfSendNotification(HttpWorkerRequest+EndOfSendNotification, Object)

當所有回應資料都傳送時,登錄以供選擇性告知。Registers for an optional notification when all the response data is sent.

ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於

另請參閱