KtorHttpRequest
Ktor-based HTTP request implementation.
This class implements the HttpRequest interface using Ktor's HttpRequestBuilder. It provides a Kotlin-idiomatic way to build HTTP requests with support for all common HTTP methods, headers, parameters, cookies, and body formats.
Important Notes
Form Accumulation: Unlike typical builders, calling form multiple times accumulates all parameters into a single form body. This is intentional for flexible composition.
Default Method: The HTTP method is GET by default. It's automatically changed to POST when calling post or form, PUT when calling put, and DELETE when calling delete.
Cookie Format: Cookies must be in Set-Cookie header format (e.g., "name=value; Path=/; HttpOnly")
Thread Safety: This class is NOT thread-safe. Create separate instances for concurrent requests.