pubdev/dartssh/http library
Classes
- HttpClient
-
HTTP client integrating io.HttpClient and
html.HttpRequest
. - HttpClientImpl
- package:http based implementation of HttpClient.
- HttpRequest
- Asynchronous HTTP request
- HttpResponse
-
HTTP response integrating io.HttpClient and
html.HttpRequest
. - SSHTunneledBaseClient
-
http.BaseClient
running over SSHTunneledSocketImpl. - TestHttpClient
- Shim HttpClient for testing
- UserAgentBaseClient
-
http.BaseClient
with userAgent header. Reference: https://github.com/dart-lang/http/blob/master/README.md
Functions
-
addBasicAuthenticationHeader(
Map< String?, String?> ? headers, String? username, String? password) → Map<String?, String?> ? - In basic HTTP authentication, a request contains a header field in the form of Authorization: Basic
-
connectUri(
Uri? uri, SocketInterface? socket, {SocketFilter? secureUpgrade}) → Future< SocketInterface?> ? -
httpRequest(
Uri? uri, String? method, SocketInterface? socket, {Map< String?, String?> ? requestHeaders, Uint8List? body, StringCallback? debugPrint, bool? persistentConnection = true}) → Future<HttpResponse?> ? - Makes HTTP request over SocketInterface, e.g. SSHTunneledSocketImpl.
Typedefs
- HttpClientFactory = (Client? Function()?)
-
SocketFilter
= (Future<
SocketInterface?> ? Function(SocketInterface?)?)