request

fun request(method: String, path: String, json: String? = null, headers: Map<String, String> = emptyMap(), caller: Caller? = null): Answer

method path with headers, sending json when it is not null. A request with a body, and a POST, PUT or PATCH without one, goes as application/json unless headers give a Content-Type: a POST that executes a command or a service route takes the type with no body too (#7331). A caller goes as the development identity headers (DevelopmentHeaders.of, as UserCredential.DEVELOPMENT writes them), which headers of the same name override.