Documentation ¶
Overview ¶
Package manael provides HTTP handler for processing images.
Package manael provides HTTP handler for processing images.
Package manael provides HTTP handler for processing images.
Package manael provides HTTP handler for processing images.
Package manael provides HTTP handler for processing images.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Proxy ¶ added in v1.4.1
type Proxy struct {
Transport http.RoundTripper
}
A Proxy responds to an HTTP request.
func NewServeProxy ¶
NewServeProxy returns a new Proxy 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:
Click to show internal directories.
Click to hide internal directories.