HttpRequestMessage Třída
Definice
Představuje zprávu požadavku HTTP.Represents a HTTP request message.
public ref class HttpRequestMessage : IDisposable
public class HttpRequestMessage : IDisposable
type HttpRequestMessage = class
interface IDisposable
Public Class HttpRequestMessage
Implements IDisposable
- Dědičnost
-
HttpRequestMessage
- Implementuje
Poznámky
HttpRequestMessageTřída obsahuje záhlaví, příkaz HTTP a potenciálně data.The HttpRequestMessage class contains headers, the HTTP verb, and potentially data.
Konstruktory
| HttpRequestMessage() |
Inicializuje novou instanci HttpRequestMessage třídy.Initializes a new instance of the HttpRequestMessage class. |
| HttpRequestMessage(HttpMethod, String) |
Inicializuje novou instanci HttpRequestMessage třídy pomocí metody HTTP a požadavku Uri .Initializes a new instance of the HttpRequestMessage class with an HTTP method and a request Uri. |
| HttpRequestMessage(HttpMethod, Uri) |
Inicializuje novou instanci HttpRequestMessage třídy pomocí metody HTTP a požadavku Uri .Initializes a new instance of the HttpRequestMessage class with an HTTP method and a request Uri. |
Vlastnosti
| Content |
Získá nebo nastaví obsah zprávy HTTP.Gets or sets the contents of the HTTP message. |
| Headers |
Získá kolekci hlaviček požadavku HTTP.Gets the collection of HTTP request headers. |
| Method |
Získá nebo nastaví metodu HTTP, kterou používá zpráva požadavku HTTP.Gets or sets the HTTP method used by the HTTP request message. |
| Options | |
| Properties |
Zastaralé.
Získá sadu vlastností pro požadavek HTTP.Gets a set of properties for the HTTP request. |
| RequestUri |
Získá nebo nastaví Uri použití pro požadavek HTTP.Gets or sets the Uri used for the HTTP request. |
| Version |
Získá nebo nastaví verzi zprávy HTTP.Gets or sets the HTTP message version. |
| VersionPolicy |
Získá nebo nastaví zásadu, která určuje, jak Version se interpretuje a jak se bude finální verze http vyjednávat se serverem.Gets or sets the policy that determines how Version is interpreted and how the final HTTP version is negotiated with the server. |
Metody
| Dispose() |
Uvolní nespravované prostředky a odstraní spravované prostředky, které používá HttpRequestMessage .Releases the unmanaged resources and disposes of the managed resources used by the HttpRequestMessage. |
| Dispose(Boolean) |
Uvolní nespravované prostředky používané HttpRequestMessage a volitelně vyřadí spravované prostředky.Releases the unmanaged resources used by the HttpRequestMessage and optionally disposes of the managed resources. |
| Equals(Object) |
Určí, zda se zadaný objekt rovná aktuálnímu objektu.Determines whether the specified object is equal to the current object. (Zděděno od Object) |
| GetHashCode() |
Slouží jako výchozí funkce hash.Serves as the default hash function. (Zděděno od Object) |
| GetType() |
Získá Type aktuální instanci.Gets the Type of the current instance. (Zděděno od Object) |
| MemberwiseClone() |
Vytvoří kopii aktuálního seznamu Object .Creates a shallow copy of the current Object. (Zděděno od Object) |
| ToString() |
Vrátí řetězec, který představuje aktuální objekt.Returns a string that represents the current object. |
Metody rozšíření
| GetUserPrincipal(HttpRequestMessage) |
Získá objekt zabezpečení přidružený k zadané zprávě s požadavkem protokolu HTTP.Gets the user principal associated with the specified HTTP request message. |
| SetUserPrincipal(HttpRequestMessage, IPrincipal) |
Nahradí objekt zabezpečení přidružený k zadané zprávě s požadavkem protokolu HTTP.Replaces the user principal associated with the specified HTTP request message. |
| ToMessage(HttpRequestMessage) |
Vytvoří Message instanci z HttpRequestMessage instance.Creates a Message instance from an HttpRequestMessage instance. |