Class ProtoHttpOptionsResolver

Namespace
ProtoTest.Http
Assembly
ProtoTest.Http.dll

Resolves the response and attachment options a protocol registered under its own key, so REST and GraphQL never share configuration even though they use the same base option types.

public static class ProtoHttpOptionsResolver
Inheritance
ProtoHttpOptionsResolver
Inherited Members

Methods

ResolveAttachmentOptions(ProtoExecutionContext, string)

Resolves the attachment options registered for protocolName, or null when the protocol has not opted into attachment capture.

public static ProtoHttpAttachmentOptions? ResolveAttachmentOptions(this ProtoExecutionContext context, string protocolName)

Parameters

context ProtoExecutionContext
protocolName string

Returns

ProtoHttpAttachmentOptions

ResolveResponseOptions(ProtoExecutionContext, string)

Resolves the response options registered for protocolName, or defaults when the protocol registered none.

public static ProtoHttpResponseOptions ResolveResponseOptions(this ProtoExecutionContext context, string protocolName)

Parameters

context ProtoExecutionContext
protocolName string

Returns

ProtoHttpResponseOptions