Fixed bugs in web server that ignored when the web app sets a header that overrides anything that would normally be generated (for forwarded content).
This commit is contained in:
@@ -80,20 +80,24 @@ public String getRedirectUri();
|
||||
*/
|
||||
public void setRedirectUri(String redirectUri);
|
||||
/**
|
||||
* Gets a user defined header for the response.
|
||||
* Gets a user defined header for the response (IMPORTANT: First line of the header ONLY).
|
||||
* This is useful for specifying non-standard error codes useable by either the browser or javascript in their processing.
|
||||
* The content will be written out as usual if any content is set.
|
||||
* The error code prempts this.
|
||||
* <p>Example: "HTTP/1.1 404 Resource Not Found\r\n". Ensure that there is a \r\n at the end of each line you add to the header.</p>
|
||||
*
|
||||
* <p>TODO: Rename this method. Call it getHeaderFirstLine or something, anything to distinguish it from setting a full blown header (see #getHeader()).</p>
|
||||
* @param header The header to be used in place of the standard header. This must at the very least include the HTTP tag similar to the one in the above example.
|
||||
*/
|
||||
public String getCustomHeader();
|
||||
/**
|
||||
* Sets a user defined header for the response.
|
||||
* Sets a user defined header for the response (IMPORTANT: First line of the header ONLY).
|
||||
* This is useful for specifying non-standard error codes useable by either the browser or javascript in their processing.
|
||||
* The content will be written out as usual if any content is set.
|
||||
* The error code prempts this.
|
||||
* <p>Example: "HTTP/1.1 404 Resource Not Found\r\n". Ensure that there is a \r\n at the end of each line you add to the header.</p>
|
||||
*
|
||||
* <p>TODO: Rename this method. Call it setHeaderFirstLine or something, anything to distinguish it from setting a full blown header (see #setHeader()).</p>
|
||||
* @param customHeader The header to be used in place of the standard header. This must at the very least include the HTTP tag similar to the one in the above example.
|
||||
*/
|
||||
public void setCustomHeader(String customHeader);
|
||||
@@ -109,8 +113,8 @@ public IWebApplication getApplication();
|
||||
*/
|
||||
public String getHeaderFieldValue(String name);
|
||||
/**
|
||||
* Sets the content provider which is used to provide all the headers and content for the message.
|
||||
* @param header Sets a custom header (the entire header, properly formatted for HTTP and ending with \r\n\r\n).
|
||||
* Sets the exact header that will be sent before sending the content to the client.
|
||||
* @param header Sets a completely custom header (the entire header, properly formatted for HTTP and ending with \r\n\r\n).
|
||||
*/
|
||||
public void setHeader(String header);
|
||||
}//IResponse//
|
||||
Reference in New Issue
Block a user