Nostrduino
Loading...
Searching...
No Matches
src
NostrUrl.h
Go to the documentation of this file.
1
#ifndef NOSTR_URL_H
2
#define NOSTR_URL_H
3
4
#include "
NostrString.h
"
5
#include <stdint.h>
6
7
namespace
nostr
{
8
9
struct
ParsedUrl
{
10
NostrString
host
;
11
NostrString
path
;
12
uint16_t
port
= 0;
13
bool
secure
=
false
;
14
};
15
16
bool
parseWebSocketUrl
(
const
NostrString
&url,
ParsedUrl
&
parsed
);
17
bool
parseHttpsUrl
(
const
NostrString
&url,
ParsedUrl
&
parsed
);
18
19
}
// namespace nostr
20
21
#endif
NostrString.h
NostrString
#define NostrString
Definition
NostrString.h:10
nostr::Nip47Response
Definition
Nip47.h:44
nostr
Definition
CryptoLock.h:6
nostr::parseWebSocketUrl
bool parseWebSocketUrl(const NostrString &url, ParsedUrl &parsed)
Definition
NostrUrl.cpp:90
nostr::parseHttpsUrl
bool parseHttpsUrl(const NostrString &url, ParsedUrl &parsed)
Definition
NostrUrl.cpp:95
nostr::ParsedUrl
Definition
NostrUrl.h:9
nostr::ParsedUrl::path
NostrString path
Definition
NostrUrl.h:11
nostr::ParsedUrl::port
uint16_t port
Definition
NostrUrl.h:12
nostr::ParsedUrl::secure
bool secure
Definition
NostrUrl.h:13
nostr::ParsedUrl::host
NostrString host
Definition
NostrUrl.h:10
Generated by
1.9.8