HttpRequestMessage Clase
Definición
Representa un mensaje de solicitud 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
- Herencia
-
HttpRequestMessage
- Implementaciones
Comentarios
La HttpRequestMessage clase contiene encabezados, el verbo http y potencialmente datos.The HttpRequestMessage class contains headers, the HTTP verb, and potentially data.
Constructores
| HttpRequestMessage() |
Inicializa una nueva instancia de la clase HttpRequestMessage.Initializes a new instance of the HttpRequestMessage class. |
| HttpRequestMessage(HttpMethod, String) |
Inicializa una nueva instancia de la clase HttpRequestMessage con un método HTTP y una solicitud Uri.Initializes a new instance of the HttpRequestMessage class with an HTTP method and a request Uri. |
| HttpRequestMessage(HttpMethod, Uri) |
Inicializa una nueva instancia de la clase HttpRequestMessage con un método HTTP y una solicitud Uri.Initializes a new instance of the HttpRequestMessage class with an HTTP method and a request Uri. |
Propiedades
| Content |
Obtiene o establece el contenido del mensaje HTTP.Gets or sets the contents of the HTTP message. |
| Headers |
Obtiene la colección de encabezados de solicitud HTTP.Gets the collection of HTTP request headers. |
| Method |
Obtiene o establece el método HTTP usado por el mensaje de solicitud HTTP.Gets or sets the HTTP method used by the HTTP request message. |
| Options | |
| Properties |
Obsoleto.
Obtiene un conjunto de propiedades de la solicitud HTTP.Gets a set of properties for the HTTP request. |
| RequestUri |
Obtiene o establece el Uri utilizado para la solicitud HTTP.Gets or sets the Uri used for the HTTP request. |
| Version |
Obtiene o establece la versión del mensaje HTTP.Gets or sets the HTTP message version. |
| VersionPolicy |
Obtiene o establece la directiva que determina cómo se interpreta Version y cómo se negocia la versión HTTP final con el servidor.Gets or sets the policy that determines how Version is interpreted and how the final HTTP version is negotiated with the server. |
Métodos
| Dispose() |
Libera los recursos no administrados y desecha los recursos administrados que usa HttpRequestMessage.Releases the unmanaged resources and disposes of the managed resources used by the HttpRequestMessage. |
| Dispose(Boolean) |
Libera los recursos no administrados que usa el objeto HttpRequestMessage y, de forma opcional, desecha los recursos administrados.Releases the unmanaged resources used by the HttpRequestMessage and optionally disposes of the managed resources. |
| Equals(Object) |
Determina si el objeto especificado es igual que el objeto actual.Determines whether the specified object is equal to the current object. (Heredado de Object) |
| GetHashCode() |
Sirve como la función hash predeterminada.Serves as the default hash function. (Heredado de Object) |
| GetType() |
Obtiene el Type de la instancia actual.Gets the Type of the current instance. (Heredado de Object) |
| MemberwiseClone() |
Crea una copia superficial del Object actual.Creates a shallow copy of the current Object. (Heredado de Object) |
| ToString() |
Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object. |
Métodos de extensión
| GetUserPrincipal(HttpRequestMessage) |
Obtiene la entidad de seguridad de usuario asociada al mensaje especificado de solicitud HTTP.Gets the user principal associated with the specified HTTP request message. |
| SetUserPrincipal(HttpRequestMessage, IPrincipal) |
Reemplaza la entidad de seguridad de usuario asociada al mensaje de solicitud HTTP especificado.Replaces the user principal associated with the specified HTTP request message. |
| ToMessage(HttpRequestMessage) |
Crea una instancia de Message a partir de una instancia de HttpRequestMessage.Creates a Message instance from an HttpRequestMessage instance. |