~tristan957/harvest-almanac

ref: 3e4722b8fc00df0fbbb320a4ac7d9155d485a1ea harvest-almanac/harvest-glib/harvest-response-metadata.h -rw-r--r-- 757 bytes
3e4722b8Tristan Partin harvest-almanac: added support for updating company 1 year, 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#if !defined(__HARVEST_HEADER_INTERNAL__) && !defined(__HARVEST_COMPILATION__)
#	error "Only <harvest-glib/harvest.h> can be included directly."
#endif

#include <glib-object.h>

#include "harvest-http.h"

G_BEGIN_DECLS

#define HARVEST_TYPE_RESPONSE_METADATA (harvest_response_metadata_get_type())
G_DECLARE_FINAL_TYPE(
	HarvestResponseMetadata, harvest_response_metadata, HARVEST, RESPONSE_METADATA, GObject)

HarvestResponseMetadata *harvest_response_metadata_new(
	const GType body_type, const HttpStatusCode expected_status);
HttpStatusCode harvest_response_metadata_get_expected_status(
	HarvestResponseMetadata *self) G_GNUC_CONST;
GType harvest_response_metadata_get_body_type(HarvestResponseMetadata *self) G_GNUC_CONST;

G_END_DECLS