@@ -202,10 +202,13 @@ func prefixLines(prefix, s []byte) []byte {
202
202
// responsible for closing the response body.
203
203
func (c * Client )Request (ctx context.Context ,method ,path string ,body interface {},opts ... RequestOption ) (* http.Response ,error ) {
204
204
opts = append ([]RequestOption {c .SessionTokenProvider .AsRequestOption ()},opts ... )
205
- return c .RequestNoSessionToken (ctx ,method ,path ,body ,opts ... )
205
+ return c .RequestWithoutSessionToken (ctx ,method ,path ,body ,opts ... )
206
206
}
207
207
208
- func (c * Client )RequestNoSessionToken (ctx context.Context ,method ,path string ,body interface {},opts ... RequestOption ) (* http.Response ,error ) {
208
+ // RequestWithoutSessionToken performs a HTTP request. It is similar to Request, but does not set
209
+ // the session token in the request header, nor does it make a call to the SessionTokenProvider.
210
+ // This allows session token providers to call this method without causing reentrancy issues.
211
+ func (c * Client )RequestWithoutSessionToken (ctx context.Context ,method ,path string ,body interface {},opts ... RequestOption ) (* http.Response ,error ) {
209
212
if ctx == nil {
210
213
return nil ,xerrors .Errorf ("context should not be nil" )
211
214
}