github.com/johnnyeven/libtools@v0.0.0-20191126065708-61829c1adf46/courier/transport_http/interface.go (about) 1 package transport_http 2 3 import "net/http" 4 5 type IMethod interface { 6 Method() string 7 } 8 9 type IBytesGetter interface { 10 Bytes() []byte 11 } 12 13 type IPath interface { 14 Path() string 15 } 16 17 type IContentType interface { 18 ContentType() string 19 } 20 21 type IStatus interface { 22 Status() int 23 } 24 25 type IHttpRequestTransformer interface { 26 TransformHttpRequest(req *http.Request) 27 }