Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResolveGraphQLInput ¶
type ResolveGraphQLInput struct {
Base, Delta mgraphql.GraphQL
BaseHeaders, DeltaHeaders []mgraphql.GraphQLHeader
BaseAsserts, DeltaAsserts []mgraphql.GraphQLAssert
}
ResolveGraphQLInput holds the base and delta information required for GraphQL resolution.
type ResolveGraphQLOutput ¶
type ResolveGraphQLOutput struct {
Resolved mgraphql.GraphQL
ResolvedHeaders []mgraphql.GraphQLHeader
ResolvedAsserts []mgraphql.GraphQLAssert
}
ResolveGraphQLOutput holds the fully resolved GraphQL request.
func ResolveGraphQL ¶
func ResolveGraphQL(input ResolveGraphQLInput) ResolveGraphQLOutput
ResolveGraphQL merges a base GraphQL request with a delta, applying overrides based on the Delta System architecture (Overlay Pattern).
type ResolveHTTPInput ¶
type ResolveHTTPInput struct {
Base, Delta mhttp.HTTP
BaseQueries, DeltaQueries []mhttp.HTTPSearchParam
BaseHeaders, DeltaHeaders []mhttp.HTTPHeader
// Bodies
BaseRawBody, DeltaRawBody mhttp.HTTPBodyRaw
BaseFormBody, DeltaFormBody []mhttp.HTTPBodyForm
BaseUrlEncodedBody, DeltaUrlEncodedBody []mhttp.HTTPBodyUrlencoded
BaseAsserts, DeltaAsserts []mhttp.HTTPAssert
}
ResolveHTTPInput holds the base and delta information required for resolution. This replaces the legacy MergeExamplesInput.
type ResolveHTTPOutput ¶
type ResolveHTTPOutput struct {
Resolved mhttp.HTTP
ResolvedQueries []mhttp.HTTPSearchParam
ResolvedHeaders []mhttp.HTTPHeader
ResolvedRawBody mhttp.HTTPBodyRaw
ResolvedFormBody []mhttp.HTTPBodyForm
ResolvedUrlEncodedBody []mhttp.HTTPBodyUrlencoded
ResolvedAsserts []mhttp.HTTPAssert
}
ResolveHTTPOutput holds the fully resolved HTTP request. This replaces the legacy MergeExamplesOutput.
func ResolveHTTP ¶
func ResolveHTTP(input ResolveHTTPInput) ResolveHTTPOutput
ResolveHTTP merges a base request with a delta request, applying overrides based on the Delta System architecture (Overlay Pattern).