-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STARCH-963 Cookie and Forwarded HTTP request header parsing utilities.
- Loading branch information
Showing
3 changed files
with
1,078 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
||
} |
Oops, something went wrong.