mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
15 lines
452 B
C#
15 lines
452 B
C#
using System;
|
|
using System.Net.Http;
|
|
using System.Text;
|
|
|
|
var body = new StringContent("""
|
|
{
|
|
"id": "id"
|
|
}
|
|
""", Encoding.UTF8, "application/json");
|
|
|
|
var client = new HttpClient();
|
|
client.DefaultRequestHeaders.Add("authorization", "Bearer");
|
|
client.DefaultRequestHeaders.Add("cookie", "mode=light");
|
|
var response = await client.GetAsync("http://localhost:8080/hello_world?search=ai", body);
|
|
var responseBody = await response.Content.ReadAsStringAsync(); |