Documentation ¶
Overview ¶
Package manael provides HTTP handler for processing images.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServeProxy ¶
A ServeProxy responds to an HTTP request.
func NewServeProxy ¶
func NewServeProxy(rawURL string) *ServeProxy
NewServeProxy returns a new ServeProxy given a upstream URL
Example ¶
package main import ( "log" "net/http" "manael.org/x/manael" ) func main() { p := manael.NewServeProxy("http://localhost:9000") err := http.ListenAndServe(":8080", p) if err != nil { log.Fatal(err) } }
Output:
func (*ServeProxy) ServeHTTP ¶
func (p *ServeProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.