Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 410 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 410 Bytes

location

An example of how set the Location header using res.location() for a 301 redirect.

How to run this example

Run this example using:

deno run --allow-net --allow-read ./examples/location/index.ts

if have the repo cloned locally OR

deno run --allow-net --allow-read https://raw.githubusercontent.com/cmorten/opine/main/examples/location/index.ts

if you don't!