Package | Description |
---|---|
com.google.api.client.testing.http.javanet |
Modifier and Type | Method and Description |
---|---|
MockHttpURLConnection |
MockHttpURLConnection.addHeader(java.lang.String name,
java.lang.String value)
Sets a custom response header.
|
MockHttpURLConnection |
MockHttpURLConnection.setErrorStream(java.io.InputStream is)
Sets the error stream.
|
MockHttpURLConnection |
MockHttpURLConnection.setInputStream(java.io.InputStream is)
Sets the input stream.
|
MockHttpURLConnection |
MockHttpURLConnection.setOutputStream(java.io.OutputStream outputStream)
Sets the output stream or
null to throw an UnknownServiceException when
getOutputStream() is called. |
MockHttpURLConnection |
MockHttpURLConnection.setResponseCode(int responseCode)
Sets the HTTP response status code.
|
Copyright © 2011-2018 Google. All Rights Reserved.