package
module
Version:
v0.0.5
Opens a new window with list of versions in this module.
Published: Aug 18, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
lambda-http-adaptor
example
package main
import (
"github.com/yacchi/lambda-http-adaptor"
_ "github.com/yacchi/lambda-http-adaptor/all"
"log"
"net/http"
)
func main() {
log.Fatalln(adaptor.ListenAndServe("", http.HandlerFunc(echoReplyHandler)))
}
func echoReplyHandler(w http.ResponseWriter, r *http.Request) {
m := r.URL.Query().Get("message")
w.Header().Set("Content-Type", "text/plain")
w.Write([]byte(m))
}
Documentation
¶
Source Files
¶
Directories
¶
|
|
|
|
|
|
example
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.