Show / Hide Table of Contents

Class ContentType

(deprecated) The content type for a fixed response.

Inheritance
System.Object
ContentType
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public sealed class ContentType : Enum
Syntax (vb)
Public NotInheritable Class ContentType
    Inherits

     Enum
Remarks

Stability: Deprecated

ExampleMetadata: infused

Examples
ApplicationListener listener;


listener.AddAction("Fixed", new AddApplicationActionProps {
    Priority = 10,
    Conditions = new [] { ListenerCondition.PathPatterns(new [] { "/ok" }) },
    Action = ListenerAction.FixedResponse(200, new FixedResponseOptions {
        ContentType = ContentType.TEXT_PLAIN,
        MessageBody = "OK"
    })
});

Synopsis

Fields

APPLICATION_JAVASCRIPT
APPLICATION_JSON
TEXT_CSS
TEXT_HTML
TEXT_PLAIN
value__

Fields

APPLICATION_JAVASCRIPT

public const ContentType APPLICATION_JAVASCRIPT
Field Value
Type Description
ContentType
Remarks

Stability: Deprecated

APPLICATION_JSON

public const ContentType APPLICATION_JSON
Field Value
Type Description
ContentType
Remarks

Stability: Deprecated

TEXT_CSS

public const ContentType TEXT_CSS
Field Value
Type Description
ContentType
Remarks

Stability: Deprecated

TEXT_HTML

public const ContentType TEXT_HTML
Field Value
Type Description
ContentType
Remarks

Stability: Deprecated

TEXT_PLAIN

public const ContentType TEXT_PLAIN
Field Value
Type Description
ContentType
Remarks

Stability: Deprecated

value__

public int value__
Field Value
Type Description
System.Int32
Back to top Generated by DocFX