libfetch 0.0.0
A lightweight asynchronous HTTP/1.1 client library implementing a subset of the WHATWG Fetch API.
Loading...
Searching...
No Matches
fetch_abort_controller Struct Reference

Abort controller for cancelling requests. More...

#include <fetch.h>

Data Fields

bool aborted
 
const char * reason
 
void(* on_abort )(void *userdata)
 
void * userdata
 

Detailed Description

Abort controller for cancelling requests.

Used to signal cancellation of ongoing fetch operations.

Note
Memory: libfetch owns the controller once passed

Field Documentation

◆ aborted

bool fetch_abort_controller::aborted

Whether the operation was aborted

◆ on_abort

void(* fetch_abort_controller::on_abort) (void *userdata)

Callback when aborted

◆ reason

const char* fetch_abort_controller::reason

Reason for abortion

◆ userdata

void* fetch_abort_controller::userdata

User data for callback


The documentation for this struct was generated from the following file: