Browse Source

Initial Commit.

master
Jeff Baskin 4 years ago
commit
169098f288
  1. 1
      .gitignore
  2. 9
      proxy.go
  3. 18
      proxy_test.go

1
.gitignore

@ -0,0 +1 @@
*.swp

9
proxy.go

@ -0,0 +1,9 @@
// morethantext/proxy.go
package proxy
import (
"net/http"
)
func handler(w http.ResponseWriter, r *http.Request) {}

18
proxy_test.go

@ -0,0 +1,18 @@
// morethantext/proxy_test.go
package proxy
import (
"net/http"
"net/http/httptest"
"testing"
)
func TestRequestCall(t *testing.T) {
ts := httptest.NewServer(http.HandlerFunc(handler))
defer ts.Close()
_, err := http.Get(ts.URL)
if err != nil {
t.Fatalf("Get: %v", err)
}
}
Loading…
Cancel
Save