Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ builder.AddGoApp("api", "./api").

The [`WithHttpEndpoint` API reference](/reference/api/go/aspire.hosting/withhttpendpoint/) describes each field of `WithHttpEndpointOptions`.

If you pass more than one options struct to a method, the SDK merges them. A field that's set in a later struct replaces the same field in an earlier one, and nested structs and maps merge recursively. Callback fields, such as `Configure`, and the `CancellationToken` field are taken whole from the later struct.

Where a parameter accepts a number or another type, such as the `value` of `WithField`, you can pass any Go numeric type, such as an untyped constant `3` (an `int`). The SDK sends all of them as JSON numbers.

## Errors

The SDK reports errors in two ways.
Expand Down
Loading