Class Http

Namespace: redb.Route.Http
Assembly: redb.Route.Http.dll

Fluent API for HTTP endpoints.

.To(Http.Post("api.example.com/users").ContentType("application/xml").Timeout(5000))
.To(Http.Get("api.example.com/data").BasicAuth("user", "pass"))
.From(Http.Listen("/webhook").Port(8080).Cors())

public static class Http

Inheritance

Object→Http

Methods

Delete(string)

HTTP DELETE request to the given URL path.

public static HttpBuilder Delete(string path)

Get(string)

HTTP GET request to the given URL path.

public static HttpBuilder Get(string path)

Head(string)

HTTP HEAD request to the given URL path.

public static HttpBuilder Head(string path)

Listen(string)

HTTP consumer — listens for incoming requests on the given route path.

public static HttpBuilder Listen(string path)

Patch(string)

HTTP PATCH request to the given URL path.

public static HttpBuilder Patch(string path)

Post(string)

HTTP POST request to the given URL path.

public static HttpBuilder Post(string path)

Put(string)

HTTP PUT request to the given URL path.

public static HttpBuilder Put(string path)