gazelle_core 0.8.0 copy "gazelle_core: ^0.8.0" to clipboard
gazelle_core: ^0.8.0 copied to clipboard

A lightweight Dart web framework for scalable and developer-friendly server-side projects.

example/gazelle_core_example.dart

import 'package:gazelle_core/gazelle_core.dart';

GazelleResponse<String> handler(
  GazelleContext context,
  GazelleRequest request,
) =>
    GazelleResponse(
      statusCode: GazelleHttpStatusCode.success.ok_200,
      body: "Hello, Gazelle!",
    );

Future<void> main() async {
  try {
    final app = GazelleApp(
      routes: [
        GazelleRoute(
          name: "hello_gazelle",
        ).get(handler),
      ],
    );

    await app.start();
    print("Gazelle listening at ${app.serverAddress}");
  } catch (e) {
    print("Failed to start the server: $e");
  }
}
7
likes
130
points
27
downloads

Publisher

verified publisherintales.it

Weekly Downloads

A lightweight Dart web framework for scalable and developer-friendly server-side projects.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

gazelle_serialization

More

Packages that depend on gazelle_core