Skip to content

request

//fluxbase-kotlin/io.github.nimbleflux.fluxbase.core/KtorHttpTransport/request

[jvm]
open suspend override fun request(method: HttpMethod, path: String, body: Any?, headers: Map<String, String>): HttpResponse

Perform an HTTP method request to path (relative to the base URL). body is a pre-serialized value (will be JSON-encoded by the transport) or null for GET/DELETE/HEAD. headers are per-request overrides merged on top of the client defaults. Returns the raw response body as text.