Package com.hw.langchain.requests
Class Requests
java.lang.Object
com.hw.langchain.requests.Requests
Wrapper around requests to handle auth and async.
The main purpose of this wrapper is to handle authentication (by saving headers)
and enable easy async methods on the same base object.
- Author:
- HamaWhite
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionokhttp3.Response
okhttp3.Response
okhttp3.Response
okhttp3.Response
okhttp3.Response
okhttp3.Response
-
Constructor Details
-
Requests
-
-
Method Details
-
sendRequest
public okhttp3.Response sendRequest(String url, String method, Map<String, Object> data) throws IOException- Throws:
IOException
-
get
- Throws:
IOException
-
post
- Throws:
IOException
-
patch
- Throws:
IOException
-
put
- Throws:
IOException
-
delete
- Throws:
IOException
-