domogeek/vendor/github.com/dolanor/caldav-go/http/response.go

19 lines
349 B
Go
Raw Permalink Normal View History

2022-04-18 10:47:47 +00:00
package http
import (
"net/http"
)
// an HTTP response object
type Response http.Response
// downcasts the response to the native HTTP interface
func (r *Response) Native() *http.Response {
return (*http.Response)(r)
}
// creates a new HTTP response object
func NewResponse(response *http.Response) *Response {
return (*Response)(response)
}