mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
Bump version to 5.11.0
This commit is contained in:
parent
a32510b8e6
commit
510e1bd0bd
370 changed files with 18825 additions and 5454 deletions
24
vendor/github.com/andygrunwald/go-jira/request_context.go
generated
vendored
Normal file
24
vendor/github.com/andygrunwald/go-jira/request_context.go
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
//go:build go1.13
|
||||
// +build go1.13
|
||||
|
||||
// This file provides glue to use Context in `http.Request` with
|
||||
// Go version 1.13 and higher.
|
||||
|
||||
// The function `http.NewRequestWithContext` has been added in Go 1.13.
|
||||
// Before the release 1.13, to use Context we need creat `http.Request`
|
||||
// then use the method `WithContext` to create a new `http.Request`
|
||||
// with Context from the existing `http.Request`.
|
||||
//
|
||||
// Doc: https://golang.org/doc/go1.13#net/http
|
||||
|
||||
package jira
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func newRequestWithContext(ctx context.Context, method, url string, body io.Reader) (*http.Request, error) {
|
||||
return http.NewRequestWithContext(ctx, method, url, body)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue