Request Data
fun RequestData(method: String, relativeUrl: String, headers: List<HeaderData> = emptyList(), queries: List<QueryData> = emptyList(), fields: List<FieldData> = emptyList(), parts: Map<String, Any> = emptyMap(), bodyData: Any? = null, qualifiedRawTypeName: String, requestBuilder: HttpRequestBuilder.() -> Unit = {})
Content copied to clipboard
Parameters
method
HTTP Keyword of requested Http Method Type
relative Url
This is the request relative url path e.g. "posts/1"
headers
list of Headers that will be used for request
queries
list of query parameters that will be added to the requested url
fields
map of fields parameters that will be added to the formData Body
body Data
data that will send to with the request
qualified Raw Type Name
This is the qualifiedName of requested return type It will be used by ResponseConverter to check if they support the type Because on JS the qualifiedName reflection does not exist, it is inserted as arguments by the Compiler Plugin