Skip to content

Commit

Permalink
docs: improve example
Browse files Browse the repository at this point in the history
  • Loading branch information
Tienisto committed Sep 27, 2024
1 parent 4744d36 commit 6fa1f43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmark/nodejs/hello.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const requestHandler = async (request, response) => {
const server = http.createServer(requestHandler);

server.listen(PORT, HOST, () => {
console.log(`Server listening on https://${HOST}:${PORT}`);
console.log(`Server listening on http://${HOST}:${PORT}`);
});

function getBody(request) {
Expand Down
3 changes: 2 additions & 1 deletion rhttp/example/lib/dns_resolution.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ class _MyAppState extends State<MyApp> {
settings: ClientSettings(
dnsSettings: DnsSettings.dynamic(
resolver: (String host) async {
print('Resolving "$host"');
if (counter % 2 == 0) {
print('Resolving "$host" as localhost');
return ['127.0.0.1'];
} else {
print('Resolving "$host" as example.com');
return ['93.184.215.14'];
}
}
Expand Down

0 comments on commit 6fa1f43

Please sign in to comment.