mirror of
https://github.com/Threnklyn/jira.git
synced 2026-05-18 20:23:28 +02:00
15 lines
341 B
Go
15 lines
341 B
Go
package jira
|
|
|
|
import (
|
|
"io"
|
|
"net/http"
|
|
)
|
|
|
|
type HttpClient interface {
|
|
Delete(url string) (*http.Response, error)
|
|
Do(*http.Request) (*http.Response, error)
|
|
GetJSON(url string) (*http.Response, error)
|
|
Post(url, bodyType string, body io.Reader) (*http.Response, error)
|
|
Put(url, bodyType string, body io.Reader) (*http.Response, error)
|
|
}
|