Http


Object Hierarchy:

Object hierarchy for Http

Description:

public class Http : Object

Static utility methods for HTTP requests.

Provides both shortcut one-liner methods and a request builder for more complex scenarios. Uses GIO SocketClient with raw HTTP/1.1 protocol internally. No external HTTP library required.

Example:

    // Simple GET
var resp = Http.get ("http://localhost:8080/hello");

// POST with body
var resp = Http.post ("http://localhost:8080/data", "hello");

// Builder pattern
var resp = Http.request ("PUT", "http://localhost:8080/item")
.bearerToken ("my-token")
.body ("update data")
.send ();


Namespace: Vala.Net
Package: Valacore

Content:

Static methods:

Creation methods:

Inherited Members:

All known members inherited from class GLib.Object