Show / Hide Table of Contents

Class ResponseCustomHeader

An HTTP response header name and its value.

Inheritance
object
ResponseCustomHeader
Implements
IResponseCustomHeader
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ResponseCustomHeader : IResponseCustomHeader
Syntax (vb)
Public Class ResponseCustomHeader Implements IResponseCustomHeader
Remarks

CloudFront includes this header in HTTP responses that it sends for requests that match a cache behavior that’s associated with this response headers policy.

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.CloudFront;

             var responseCustomHeader = new ResponseCustomHeader {
                 Header = "header",
                 Override = false,
                 Value = "value"
             };

Synopsis

Constructors

ResponseCustomHeader()

An HTTP response header name and its value.

Properties

Header

The HTTP response header name.

Override

A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.

Value

The value for the HTTP response header.

Constructors

ResponseCustomHeader()

An HTTP response header name and its value.

public ResponseCustomHeader()
Remarks

CloudFront includes this header in HTTP responses that it sends for requests that match a cache behavior that’s associated with this response headers policy.

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.CloudFront;

             var responseCustomHeader = new ResponseCustomHeader {
                 Header = "header",
                 Override = false,
                 Value = "value"
             };

Properties

Header

The HTTP response header name.

public string Header { get; set; }
Property Value

string

Remarks

CloudFront includes this header in HTTP responses that it sends for requests that match a cache behavior that’s associated with this response headers policy.

ExampleMetadata: fixture=_generated

Override

A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.

public bool Override { get; set; }
Property Value

bool

Remarks

CloudFront includes this header in HTTP responses that it sends for requests that match a cache behavior that’s associated with this response headers policy.

ExampleMetadata: fixture=_generated

Value

The value for the HTTP response header.

public string Value { get; set; }
Property Value

string

Remarks

CloudFront includes this header in HTTP responses that it sends for requests that match a cache behavior that’s associated with this response headers policy.

ExampleMetadata: fixture=_generated

Implements

IResponseCustomHeader
Back to top Generated by DocFX