surl

command module
v0.0.0-...-2689969 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 9 Imported by: 0

README

sURL

URL Shortener used by levpay

Example

curl -i 'http://127.0.0.1:8080/' -H 'Content-Type: application/json; charset=UTF-8' --data-binary '{"url":"https://www.google.com/"}' --compressed
HTTP/1.1 201 Created
Content-Type: application/json
Date: Mon, 28 Jan 2019 13:29:10 GMT
Content-Length: 50

{"url":"https://www.google.com/","short":"XBvHFJ"}%
redirect
curl -i http://127.0.0.1:8080/XBvHFJ
HTTP/1.1 301 Moved Permanently
Content-Type: text/html; charset=utf-8
Location: https://www.google.com/
Date: Mon, 28 Jan 2019 13:30:26 GMT
Content-Length: 58

<a href="https://www.google.com/">Moved Permanently</a>.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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