HttpRequestHeader Enumeração

Definição

Os cabeçalhos HTTP que podem ser especificados em uma solicitação de cliente.The HTTP headers that may be specified in a client request.

public enum class HttpRequestHeader
public enum HttpRequestHeader
type HttpRequestHeader = 
Public Enum HttpRequestHeader
Herança
HttpRequestHeader

Campos

Accept 20

O cabeçalho Accept, que especifica os tipos MIME aceitáveis para a resposta.The Accept header, which specifies the MIME types that are acceptable for the response.

AcceptCharset 21

O cabeçalho Accept-Charset, que especifica os conjuntos de caracteres aceitáveis para a resposta.The Accept-Charset header, which specifies the character sets that are acceptable for the response.

AcceptEncoding 22

O cabeçalho Accept-Encoding, que especifica as codificações de conteúdo aceitáveis para a resposta.The Accept-Encoding header, which specifies the content encodings that are acceptable for the response.

AcceptLanguage 23

O cabeçalho Accept-Language, que especifica que idiomas naturais são preferenciais para a resposta.The Accept-Language header, which specifies that natural languages that are preferred for the response.

Allow 10

O cabeçalho Allow, que especifica o conjunto de métodos HTTP com suporte.The Allow header, which specifies the set of HTTP methods supported.

Authorization 24

O cabeçalho Authorization, que especifica as credenciais que o cliente apresenta para se autenticar no servidor.The Authorization header, which specifies the credentials that the client presents in order to authenticate itself to the server.

CacheControl 0

O cabeçalho Cache-Control, que especifica as diretivas que devem ser obedecidas por todos os mecanismos de controle de cache ao longo da cadeia de solicitação/resposta.The Cache-Control header, which specifies directives that must be obeyed by all cache control mechanisms along the request/response chain.

Connection 1

O cabeçalho Connection, que especifica as opções desejadas para uma determinada conexão.The Connection header, which specifies options that are desired for a particular connection.

ContentEncoding 13

O cabeçalho Content-Encoding, que especifica as codificações que foram aplicadas aos dados do corpo que acompanha.The Content-Encoding header, which specifies the encodings that have been applied to the accompanying body data.

ContentLanguage 14

O cabeçalho Content-Language, que especifica os idiomas naturais do corpo de dados complementar.The Content-Language header, which specifies the natural language(s) of the accompanying body data.

ContentLength 11

O cabeçalho Content-Length, que especifica o comprimento, em bytes, dos dados do corpo que acompanha.The Content-Length header, which specifies the length, in bytes, of the accompanying body data.

ContentLocation 15

O cabeçalho Content-Location, que especifica um URI do qual o corpo complementar pode ser obtido.The Content-Location header, which specifies a URI from which the accompanying body may be obtained.

ContentMd5 16

O cabeçalho Content-MD5, que especifica o resumo de MD5 dos dados do corpo que acompanha, com a finalidade de fornecer uma verificação de integridade da mensagem de ponta a ponta.The Content-MD5 header, which specifies the MD5 digest of the accompanying body data, for the purpose of providing an end-to-end message integrity check. Devido a problemas de colisão com o MD5, a Microsoft recomenda um modelo de segurança baseado em SHA256 ou melhor.Due to collision problems with MD5, Microsoft recommends a security model based on SHA256 or better.

ContentRange 17

O cabeçalho Content-Range, que especifica o local no corpo completo ao qual o corpo de dados parcial complementar deve ser aplicado.The Content-Range header, which specifies where in the full body the accompanying partial body data should be applied.

ContentType 12

O cabeçalho Content-Type, que especifica o tipo MIME dos dados do corpo que acompanha.The Content-Type header, which specifies the MIME type of the accompanying body data.

25

O cabeçalho Cookie, que especifica os dados de cookie apresentados ao servidor.The Cookie header, which specifies cookie data presented to the server.

Date 2

O cabeçalho Date, que especifica a data e hora de origem da solicitação.The Date header, which specifies the date and time at which the request originated.

Expect 26

O cabeçalho Expect, que especifica os comportamentos de servidor específicos que são necessários para o cliente.The Expect header, which specifies particular server behaviors that are required by the client.

Expires 18

O cabeçalho Expires, que especifica a data e hora após as quais os dados do corpo que acompanha devem ser considerados obsoletos.The Expires header, which specifies the date and time after which the accompanying body data should be considered stale.

From 27

O cabeçalho From, que especifica um endereço de email da Internet para o usuário humano que controla o agente do usuário solicitante.The From header, which specifies an Internet Email address for the human user who controls the requesting user agent.

Host 28

O cabeçalho Host, que especifica o nome do host e o número da porta do recurso solicitado.The Host header, which specifies the host name and port number of the resource being requested.

IfMatch 29

O cabeçalho If-Match, que especifica que a operação solicitada deverá ser executada somente se a cópia armazenada em cache do cliente do recurso indicado for atual.The If-Match header, which specifies that the requested operation should be performed only if the client's cached copy of the indicated resource is current.

IfModifiedSince 30

O cabeçalho If-Modified-Since, que especifica que a operação solicitada deverá ser executada somente se o recurso solicitado tiver sido modificado desde a data e hora indicadas.The If-Modified-Since header, which specifies that the requested operation should be performed only if the requested resource has been modified since the indicated data and time.

IfNoneMatch 31

O cabeçalho If-None-Match, que especifica que a operação solicitada deverá ser executada apenas se nenhuma das cópias armazenadas em cache do cliente dos recursos indicados for atual.The If-None-Match header, which specifies that the requested operation should be performed only if none of client's cached copies of the indicated resources are current.

IfRange 32

O cabeçalho If-Range, que especifica que somente o alcance especificado do recurso solicitado deverá ser enviado se a cópia armazenada em cache do cliente for atual.The If-Range header, which specifies that only the specified range of the requested resource should be sent, if the client's cached copy is current.

IfUnmodifiedSince 33

O cabeçalho If-Unmodified-Since, que especifica que a operação solicitada deverá ser executada somente se o recurso solicitado não tiver sido modificado desde a data e hora indicadas.The If-Unmodified-Since header, which specifies that the requested operation should be performed only if the requested resource has not been modified since the indicated date and time.

KeepAlive 3

O cabeçalho Keep-Alive, que especifica um parâmetro usado para manter uma conexão persistente.The Keep-Alive header, which specifies a parameter used into order to maintain a persistent connection.

LastModified 19

O cabeçalho Last-Modified, que especifica a data e hora em que os dados do corpo que acompanha foram modificados.The Last-Modified header, which specifies the date and time at which the accompanying body data was last modified.

MaxForwards 34

O cabeçalho Max-Forwards, que especifica um inteiro indicando o número de vezes restantes durante o qual essa solicitação pode ser encaminhada.The Max-Forwards header, which specifies an integer indicating the remaining number of times that this request may be forwarded.

Pragma 4

O cabeçalho Pragma, que especifica as diretivas específicas da implementação que podem ser aplicadas a qualquer agente ao longo da cadeia de solicitação/resposta.The Pragma header, which specifies implementation-specific directives that might apply to any agent along the request/response chain.

ProxyAuthorization 35

O cabeçalho Proxy-Authorization, que especifica as credenciais que o cliente apresenta para se autenticar em um proxy.The Proxy-Authorization header, which specifies the credentials that the client presents in order to authenticate itself to a proxy.

Range 37

O cabeçalho Range, que especifica os subintervalos da resposta que o cliente solicita que sejam retornados em vez da resposta inteira.The Range header, which specifies the sub-range(s) of the response that the client requests be returned in lieu of the entire response.

Referer 36

O cabeçalho Referer, que especifica o URI do recurso do qual foi obtido o URI da solicitação.The Referer header, which specifies the URI of the resource from which the request URI was obtained.

Te 38

O cabeçalho TE, que especifica as codificações de transferência aceitáveis para a resposta.The TE header, which specifies the transfer encodings that are acceptable for the response.

Trailer 5

O cabeçalho Trailer, que especifica os campos de cabeçalho presentes no código de fim de uma mensagem codificada com codificação de transferência em bloco.The Trailer header, which specifies the header fields present in the trailer of a message encoded with chunked transfer-coding.

TransferEncoding 6

O cabeçalho Transfer-Encoding, que especifica qual (se houver) tipo de transformação foi aplicado ao corpo da mensagem.The Transfer-Encoding header, which specifies what (if any) type of transformation that has been applied to the message body.

Translate 39

O cabeçalho Translate, uma extensão da Microsoft para a especificação de HTTP usada em conjunto com a funcionalidade WebDAV.The Translate header, a Microsoft extension to the HTTP specification used in conjunction with WebDAV functionality.

Upgrade 7

O cabeçalho Upgrade, que especifica os protocolos de comunicação adicionais aos quais o cliente dá suporte.The Upgrade header, which specifies additional communications protocols that the client supports.

UserAgent 40

O cabeçalho User-Agent, que especifica as informações sobre o agente cliente.The User-Agent header, which specifies information about the client agent.

Via 8

O cabeçalho Via, que especifica os protocolos intermediários a serem usados pelos agentes de gateway e de proxy.The Via header, which specifies intermediate protocols to be used by gateway and proxy agents.

Warning 9

O cabeçalho Warning, que especifica informações adicionais sobre o status ou a transformação de uma mensagem que talvez não seja refletida na mensagem.The Warning header, which specifies additional information about that status or transformation of a message that might not be reflected in the message.

Comentários

O conteúdo apropriado de vários cabeçalhos é descrito em detalhes na especificação HTTP/1.1, disponível em rfc2616.The appropriate contents of various headers are described in detail in the HTTP/1.1 specification, available at rfc2616.

Aplica-se a

Confira também