soup_message


Description:

public Message soup_message (string method, string url, string? body = null)

Creates a Soup.Message with authorization headers set.

Creates a new HTTP message with the specified method and URL, and automatically adds the Authorization header if an API key is configured.

Parameters:

method

HTTP method (e.g., "GET", "POST")

url

Full URL for the request

body

Optional request body string (will be set as JSON content type)

Returns:

A new Soup.Message with authorization headers configured