libfetch 0.0.0
A lightweight asynchronous HTTP/1.1 client library implementing a subset of the WHATWG Fetch API.
Loading...
Searching...
No Matches
Request/Response Body

Handle different types of request and response bodies. More...

Data Structures

struct  fetch_body_t
 Request or response body. More...
 

Enumerations

enum  fetch_body_type_t {
  FETCH_BODY_NONE , FETCH_BODY_TEXT , FETCH_BODY_BINARY , FETCH_BODY_FORM_DATA ,
  FETCH_BODY_JSON , FETCH_BODY_FILE
}
 Types of request/response bodies. More...
 

Detailed Description

Handle different types of request and response bodies.

Enumeration Type Documentation

◆ fetch_body_type_t

Types of request/response bodies.

Enumerator
FETCH_BODY_NONE 

No body content

FETCH_BODY_TEXT 

Plain text content

FETCH_BODY_BINARY 

Binary data

FETCH_BODY_FORM_DATA 

Form-encoded data

FETCH_BODY_JSON 

JSON data

FETCH_BODY_FILE 

File content to be streamed