Example usage for org.springframework.boot.devtools.remote.client HttpHeaderInterceptor HttpHeaderInterceptor

List of usage examples for org.springframework.boot.devtools.remote.client HttpHeaderInterceptor HttpHeaderInterceptor

Introduction

In this page you can find the example usage for org.springframework.boot.devtools.remote.client HttpHeaderInterceptor HttpHeaderInterceptor.

Prototype

public HttpHeaderInterceptor(String name, String value) 

Source Link

Document

Creates a new HttpHeaderInterceptor instance.

Usage

From source file:org.springframework.boot.devtools.remote.client.RemoteClientConfiguration.java

private ClientHttpRequestInterceptor getSecurityInterceptor() {
    RemoteDevToolsProperties remoteProperties = this.properties.getRemote();
    String secretHeaderName = remoteProperties.getSecretHeaderName();
    String secret = remoteProperties.getSecret();
    Assert.state(secret != null, "The environment value 'spring.devtools.remote.secret' "
            + "is required to secure your connection.");
    return new HttpHeaderInterceptor(secretHeaderName, secret);
}