Entendendo o HTTP a fundo

https://leanpub.com/redes-dev-web

Conceitos iniciais

https://leanpub.com/redes-dev-web

Cliente e servidor — Requisição e resposta

https://leanpub.com/redes-dev-web

Projeto WWW

https://leanpub.com/redes-dev-web

Anatomia de uma requisição HTTP

https://leanpub.com/redes-dev-web

Linha de requisição

https://leanpub.com/redes-dev-web

Cabeçalhos da requisição — Request headers

https://leanpub.com/redes-dev-web

Linha em branco

https://leanpub.com/redes-dev-web

Corpo da requisição — Request body (opcional)

https://leanpub.com/redes-dev-web

Anatomia de uma resposta HTTP

https://leanpub.com/redes-dev-web

Linha de status — Status line

https://leanpub.com/redes-dev-web

Cabeçalhos da resposta — Response headers

https://leanpub.com/redes-dev-web

Corpo da resposta — Response body

https://leanpub.com/redes-dev-web

URLs

https://leanpub.com/redes-dev-web

Métodos (ou verbos) HTTP

https://leanpub.com/redes-dev-web

GET

https://leanpub.com/redes-dev-webhttps://leanpub.com/redes-dev-web

POST

https://leanpub.com/redes-dev-web

PUT

https://leanpub.com/redes-dev-web

DELETE

https://leanpub.com/redes-dev-web

OPTIONS

https://leanpub.com/redes-dev-web

TRACE e CONNECT

https://leanpub.com/redes-dev-web

PATCH

https://leanpub.com/redes-dev-web

Propriedades dos métodos HTTP

https://leanpub.com/redes-dev-web

Métodos seguros (safe)

https://leanpub.com/redes-dev-web

Métodos idempotentes

https://leanpub.com/redes-dev-web

Métodos cacheáveis

https://leanpub.com/redes-dev-web

Tabela de propriedades dos métodos

https://leanpub.com/redes-dev-web

Códigos de resposta

https://leanpub.com/redes-dev-web

1xx

https://leanpub.com/redes-dev-web

100 Continue

https://leanpub.com/redes-dev-web

101 Switching Protocols

https://leanpub.com/redes-dev-web

103 Early Hints

https://leanpub.com/redes-dev-web

2xx

https://leanpub.com/redes-dev-web

200 OK

https://leanpub.com/redes-dev-web

201 Created

https://leanpub.com/redes-dev-web

202 Accepted

https://leanpub.com/redes-dev-web

204 No Content

https://leanpub.com/redes-dev-web

Outros status dessa classe

https://leanpub.com/redes-dev-web

3xx

https://leanpub.com/redes-dev-web

301 Moved Permanently

https://leanpub.com/redes-dev-web

302 Found

https://leanpub.com/redes-dev-web

307 Temporary Redirect

https://leanpub.com/redes-dev-web

308 Permanent Redirect

https://leanpub.com/redes-dev-web

303 See Other

https://leanpub.com/redes-dev-web

304 Not Modified

https://leanpub.com/redes-dev-web

300 Multiple Choices

https://leanpub.com/redes-dev-web

4xx

https://leanpub.com/redes-dev-web

400 Bad Request

https://leanpub.com/redes-dev-web

401 Unauthorized

https://leanpub.com/redes-dev-web

403 Forbidden

https://leanpub.com/redes-dev-web

404 Not Found

https://leanpub.com/redes-dev-web

Outros status dessa classe

https://leanpub.com/redes-dev-web

5xx

https://leanpub.com/redes-dev-web

500 Internal Server Error

https://leanpub.com/redes-dev-web

Outros status dessa faixa

https://leanpub.com/redes-dev-web

Uso de cabeçalhos

https://leanpub.com/redes-dev-web

Cabeçalhos comuns

https://leanpub.com/redes-dev-web

Condições

https://leanpub.com/redes-dev-web

Cache

https://leanpub.com/redes-dev-web

Expires

https://leanpub.com/redes-dev-web

ETag

https://leanpub.com/redes-dev-web

Last-Modified

https://leanpub.com/redes-dev-web

Cache-Control

https://leanpub.com/redes-dev-web
Public ou Private
https://leanpub.com/redes-dev-web
Outras opções
https://leanpub.com/redes-dev-web

Freshness

https://leanpub.com/redes-dev-web

Segurança

https://leanpub.com/redes-dev-web

HSTS — HTTP Strict Transport Security

https://leanpub.com/redes-dev-web
Visualizando na prática
https://leanpub.com/redes-dev-web
HSTS Preload
https://leanpub.com/redes-dev-web

CSP — Content Security Policy

https://leanpub.com/redes-dev-web
Inline e nonce
https://leanpub.com/redes-dev-web
Clickjacking e iframes
https://leanpub.com/redes-dev-web
Aplicação gradual e report-only
https://leanpub.com/redes-dev-web

CORS

https://leanpub.com/redes-dev-web
Access-Control-Allow-Origin
https://leanpub.com/redes-dev-web
Preflight request
https://leanpub.com/redes-dev-web
Requisição “simples”
https://leanpub.com/redes-dev-web
Demais cabeçalhos de Access-Control-Allow
https://leanpub.com/redes-dev-web
Resposta Opaca
https://leanpub.com/redes-dev-web
Mais detalhes
https://leanpub.com/redes-dev-web

Cookies

https://leanpub.com/redes-dev-web

Definição de cookies

https://leanpub.com/redes-dev-webhttps://leanpub.com/redes-dev-web

Sessão HTTP e autenticação

https://leanpub.com/redes-dev-web

Diretivas de cookies

https://leanpub.com/redes-dev-web