Skip to content

Commit

Permalink
STARCH-963 Cookie and Forwarded HTTP request header parsing utilities.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwfyffeiu committed Feb 19, 2025
1 parent b86b3b5 commit f64e655
Show file tree
Hide file tree
Showing 3 changed files with 1,078 additions and 32 deletions.
41 changes: 41 additions & 0 deletions base/src/main/java/edu/iu/IuForwardedHeader.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package edu.iu;

/**
* Provides parameters from the HTTP Forwarded header.
*
* @see <a href=
* "https://datatracker.ietf.org/doc/html/rfc7239#section-5">RFC-7239
* Forwarded HTTP Extension, Section 5</a>
* @see IuWebUtils#parseForwardedHeader(String)
*/
public interface IuForwardedHeader {

/**
* Gets the user-agent facing interface of the proxy.
*
* @return "by" value
*/
String getBy();

/**
* Gets the node making the request to the proxy.
*
* @return "for" value
*/
String getFor();

/**
* Gets the host request header field as received by the proxy.
*
* @return "host" value
*/
String getHost();

/**
* Gets the protocol used to make the request.
*
* @return "proto" value
*/
String getProto();

}
Loading

0 comments on commit f64e655

Please sign in to comment.