org.llm4s.http.HttpRequest
See theHttpRequest companion class
object HttpRequest
Attributes
- Companion
- class
- Source
- Llm4sHttpClient.scala
- Graph
-
- Supertypes
- Self type
-
HttpRequest.type
Members list
Type members
Inherited and Abstract types
The names of the product elements
The name of the type
Value members
Concrete methods
def apply(method: HttpMethod, url: String, headers: Map[String, String], queryParams: Map[String, String], body: HttpBody, responseTimeout: FiniteDuration, idleTimeout: FiniteDuration): HttpRequest
Creates an HttpRequest.
Creates an HttpRequest.
Value parameters
- body
-
the request body
- headers
-
request headers
- idleTimeout
-
the longest a read of the response body waits for more bytes
- method
-
the HTTP method
- queryParams
-
query parameters, URL-encoded and appended to
url - responseTimeout
-
the longest wait for the response's status line and headers
- url
-
absolute
httporhttpsURL
Attributes
- Source
- Llm4sHttpClient.scala
Concrete fields
Both timeouts of a request that sets neither.
In this article
