summaryrefslogtreecommitdiff
path: root/patchset.http.go
diff options
context:
space:
mode:
Diffstat (limited to 'patchset.http.go')
-rw-r--r--patchset.http.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/patchset.http.go b/patchset.http.go
index 8bce433..9bafc5d 100644
--- a/patchset.http.go
+++ b/patchset.http.go
@@ -13,11 +13,12 @@ import (
"go.wit.com/log"
)
-func (p *Patches) HttpPostVerbose(baseURL string, route string) (*Patches, error) {
+func (p *Patches) HttpPostVerbose(baseURL string, route string) (*Patches, *httppb.HttpRequest, error) {
p.PrintTable()
return p.HttpPost(baseURL, route)
}
+/*
func (p *Patches) HttpPost(baseURL string, route string) (*Patches, error) {
if p == nil {
log.Info("can't post a nil PB")
@@ -60,6 +61,7 @@ func (p *Patches) HttpPost(baseURL string, route string) (*Patches, error) {
}
return newpb, err
}
+*/
func (p *Patchset) HttpPost(baseURL string, route string) (*Patchset, error) {
// if you ever have "http://www.wit.com//" GO will regect the server recieving it.
@@ -93,6 +95,7 @@ func (p *Patchset) HttpPost(baseURL string, route string) (*Patchset, error) {
return newpb, err
}
+/*
func (p *Patches) SendReply(w http.ResponseWriter, reqPB *httppb.HttpRequest) error {
data, err := p.Marshal()
if err != nil {
@@ -126,12 +129,14 @@ func (p *Patchsets) SendReply(w http.ResponseWriter, reqPB *httppb.HttpRequest)
}
return err
}
+*/
-func (p *Patchsets) HttpPostVerbose(baseURL string, route string) (*Patchsets, error) {
+func (p *Patchsets) HttpPostVerbose(baseURL string, route string) (*Patchsets, *httppb.HttpRequest, error) {
p.PrintTable()
return p.HttpPost(baseURL, route)
}
+/*
func (p *Patchsets) HttpPost(baseURL string, route string) (*Patchsets, error) {
// if you ever have "http://www.wit.com//" GO will regect the server recieving it.
// Even though the linux kernel gets the network payload
@@ -163,3 +168,4 @@ func (p *Patchsets) HttpPost(baseURL string, route string) (*Patchsets, error) {
log.Infof("patchset PB HttpPost %s sent len(%d) got len(%d)\n", finalURL.String(), p.Len(), newpb.Len())
return newpb, err
}
+*/