SSHHttpClient class
A HTTP client that works over SSH port forwarding.
This is a very basic implementation of a HTTP client, has the following limitations:
- Only supports HTTP/1.0 and HTTP/1.1
- Only supports "identity" encoding
- No keep-alive
- No automatic redirects
- No support for https
This client intends to be used for communicating with services on the ssh host that are easier to communicate with using HTTP. Not for communicating with API endpoints on the internet.
Constructors
- SSHHttpClient(SSHClient client)
-
const
Properties
Methods
-
delete(
Uri uri) → SSHHttpClientRequest - Send a DELETE request to the provided URL.
-
get(
Uri uri) → SSHHttpClientRequest - Send a GET request to the provided URL.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
Uri uri) → SSHHttpClientRequest - Send a POST request to the provided URL.
-
put(
Uri uri) → SSHHttpClientRequest - Send a PUT request to the provided URL.
-
request(
String method, Uri uri, bool body) → SSHHttpClientRequest -
Send a HTTP request to
uri
with the providedmethod
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited