[ADD/WIP] Add some HTTP request code

We can now *register* users!
This commit is contained in:
LDA 2024-06-13 09:35:57 +02:00
commit 0fa95c2d14
12 changed files with 320 additions and 11 deletions

18
src/include/AS.h Normal file
View file

@ -0,0 +1,18 @@
#ifndef PARSEE_AS_H
#define PARSEE_AS_H
#include <Cytoplasm/HttpClient.h>
#include <Cytoplasm/Json.h>
#include <Parsee.h>
#include <Routes.h>
/* Verifies a request from the homeserver to match the
* hs_token. */
extern HashMap * ASVerifyRequest(ParseeHttpArg *);
/* Authenticates a request with the correct as_token.
* It does not send the request, however. */
extern void ASAuthenticateRequest(ParseeConfig *, HttpClientContext *);
#endif