public class BrotliResponseTransform extends Object
| Constructor and Description |
|---|
BrotliResponseTransform() |
| Modifier and Type | Method and Description |
|---|---|
HarPostProcessor |
asPostProcessor() |
List<net.lightbody.bmp.core.har.HarEntry> |
clean(net.lightbody.bmp.core.har.Har inputHar)
Cleans a given har by decoding its responses where necessary.
|
protected void |
clean(net.lightbody.bmp.core.har.HarResponse response) |
protected void |
clean(Stream<net.lightbody.bmp.core.har.HarEntry> entries) |
protected void |
cleaningExceptionThrown(net.lightbody.bmp.core.har.HarResponse response,
Exception exception) |
protected Charset |
divineCharset(net.lightbody.bmp.core.har.HarResponse response) |
protected boolean |
isValidCss(String sourceCode) |
protected boolean |
isValidJavascript(String sourceCode)
Checks whether a string is parseable javascript source code.
|
public HarPostProcessor asPostProcessor()
public List<net.lightbody.bmp.core.har.HarEntry> clean(net.lightbody.bmp.core.har.Har inputHar)
inputHar - the har to cleanprotected void cleaningExceptionThrown(net.lightbody.bmp.core.har.HarResponse response,
Exception exception)
protected void clean(Stream<net.lightbody.bmp.core.har.HarEntry> entries)
protected Charset divineCharset(net.lightbody.bmp.core.har.HarResponse response)
protected void clean(net.lightbody.bmp.core.har.HarResponse response)
throws IOException
IOExceptionprotected boolean isValidCss(String sourceCode)
protected boolean isValidJavascript(String sourceCode)
sourceCode - the source codeCopyright © 2016–2018. All rights reserved.