Skip to content

Commit

Permalink
Adds constants for Sec-Fetch-(Dest|Mode|Site|User) headers.
Browse files Browse the repository at this point in the history
https://github.com/mikewest/sec-metadata

RELNOTES=Adds constants for Sec-Fetch headers.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=229692513
  • Loading branch information
lweichselbaum authored and ronshapiro committed Feb 14, 2019
1 parent 1cc9b83 commit 673b243
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 2 deletions.
30 changes: 29 additions & 1 deletion android/guava/src/com/google/common/net/HttpHeaders.java
Expand Up @@ -397,7 +397,35 @@ private ReferrerPolicyValues() {}
public static final String PING_TO = "Ping-To";

/**
* The HTTP <a href="https://github.com/mikewest/sec-metadata">{@code Sec-Metadata}</a> header
* The HTTP <a href="https://mikewest.github.io/sec-metadata/">{@code Sec-Fetch-Dest}</a> header
* field name.
*
* @since NEXT
*/
public static final String SEC_FETCH_DEST = "Sec-Fetch-Dest";
/**
* The HTTP <a href="https://mikewest.github.io/sec-metadata/">{@code Sec-Fetch-Mode}</a> header
* field name.
*
* @since NEXT
*/
public static final String SEC_FETCH_MODE = "Sec-Fetch-Mode";
/**
* The HTTP <a href="https://mikewest.github.io/sec-metadata/">{@code Sec-Fetch-Site}</a> header
* field name.
*
* @since NEXT
*/
public static final String SEC_FETCH_SITE = "Sec-Fetch-Site";
/**
* The HTTP <a href="https://mikewest.github.io/sec-metadata/">{@code Sec-Fetch-User}</a> header
* field name.
*
* @since NEXT
*/
public static final String SEC_FETCH_USER = "Sec-Fetch-User";
/**
* The HTTP <a href="https://mikewest.github.io/sec-metadata/">{@code Sec-Metadata}</a> header
* field name.
*
* @since 26.0
Expand Down
30 changes: 29 additions & 1 deletion guava/src/com/google/common/net/HttpHeaders.java
Expand Up @@ -397,7 +397,35 @@ private ReferrerPolicyValues() {}
public static final String PING_TO = "Ping-To";

/**
* The HTTP <a href="https://github.com/mikewest/sec-metadata">{@code Sec-Metadata}</a> header
* The HTTP <a href="https://mikewest.github.io/sec-metadata/">{@code Sec-Fetch-Dest}</a> header
* field name.
*
* @since NEXT
*/
public static final String SEC_FETCH_DEST = "Sec-Fetch-Dest";
/**
* The HTTP <a href="https://mikewest.github.io/sec-metadata/">{@code Sec-Fetch-Mode}</a> header
* field name.
*
* @since NEXT
*/
public static final String SEC_FETCH_MODE = "Sec-Fetch-Mode";
/**
* The HTTP <a href="https://mikewest.github.io/sec-metadata/">{@code Sec-Fetch-Site}</a> header
* field name.
*
* @since NEXT
*/
public static final String SEC_FETCH_SITE = "Sec-Fetch-Site";
/**
* The HTTP <a href="https://mikewest.github.io/sec-metadata/">{@code Sec-Fetch-User}</a> header
* field name.
*
* @since NEXT
*/
public static final String SEC_FETCH_USER = "Sec-Fetch-User";
/**
* The HTTP <a href="https://mikewest.github.io/sec-metadata/">{@code Sec-Metadata}</a> header
* field name.
*
* @since 26.0
Expand Down

0 comments on commit 673b243

Please sign in to comment.