Skip to content

gurjeetsinghvirdee/http-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP Fetcher

Getting Started

Prerequisites

  • D Programming Language (Install from dlang.org)
  • DUB (D's package manager, included with the D installer)

Installation

Clone the repository and navigate to the project directory:

git clone <repository-url>
cd project-root

Build and Run

To build and run the project, use DUB:

dub build
dub run

Running Tests

To run the unit tests:

dub test

Usage

Modify source/fetcher.d to customize the HTTP request functionality. Use source/app.d as the entry point to your application.

Example

Here's a basic example in source/app.d:

import fetcher;
import std.stdio;

void main() {
    auto response = fetch("https://api.example.com/data");
    writeln("Response: ", response);
}

About

A simple HTTP request fetcher

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages