redirect

command
v0.0.0-...-a649600 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

README

Redirect

This demonstrates how to http redirect using an API service

## Usage

Run the micro API

micro --registry=mdns api

Run the redirect API

go run main.go --registry=mdns

Make request

curl -v http://localhost:8080/redirect/url

Should return

HTTP/1.1 301 Moved Permanently
Location: https://google.com

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL