HttpWorkerRequest.GetProtocol 方法

定义

在派生类中被重写时,返回 HTTP 协议(HTTP 或 HTTPS)。When overridden in a derived class, returns the HTTP protocol (HTTP or HTTPS).

public:
 virtual System::String ^ GetProtocol();
public virtual string GetProtocol ();
abstract member GetProtocol : unit -> string
override this.GetProtocol : unit -> string
Public Overridable Function GetProtocol () As String

返回

如果 IsSecure() 方法为 true,则为 HTTPS;否则,为 HTTP。HTTPS if the IsSecure() method is true, otherwise HTTP.

适用于