https://kotlinlang.org logo
#getting-started
Title
# getting-started
j

JonasDaWi

12/28/2021, 5:07 PM
Does anyone know how I can make a httpmethod=SEARCH request in ktor? In curl it works like this: curl host -X SEARCH
v

Vampire

12/28/2021, 5:22 PM
I'd say Google, first hit for "ktor http method" looks pretty promising. 😉
j

JonasDaWi

12/28/2021, 5:26 PM
@Vampire SEARCH is not a standard http method. This is why it is not in HttpMethod. How would i set the method to Search? Sorry I didn't find it on google search
v

Vampire

12/28/2021, 5:29 PM
Sorry, I don't use ktor, but this looks to me like you could give any method you want to the constructor: https://api.ktor.io/ktor-http/io.ktor.http/-http-method/index.html
k

Kirill Grouchnikov

12/28/2021, 5:45 PM
Also #ktor channel
👌 1
2 Views