UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
HttpPath.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "Containers/Array.h"
6#include "CoreMinimal.h"
7#include "HAL/Platform.h"
9#include "Misc/CString.h"
10
12{
13
14public:
15
20
27
31 HTTPSERVER_API const FString& GetPath() const;
32
40
46 HTTPSERVER_API void SetPath(FString Path);
47
51 HTTPSERVER_API bool IsValidPath() const;
52
56 HTTPSERVER_API bool IsRoot() const;
57
64 HTTPSERVER_API void MakeRelative(const FString& OtherPath);
65
66 // TMap<> Comparer
67 bool operator==(const FHttpPath& Other) const
68 {
69 bool bEqual = (0 == Path.Compare(Other.Path, ESearchCase::CaseSensitive));
70 return bEqual;
71 }
72
74 {
75 return GetTypeHash(InPath.GetPath());
76 }
77
78private:
79
83 void NormalizePath();
84
86 FString Path = TEXT("/");
87
88};
89
90
#define TEXT(x)
Definition Platform.h:1272
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Array.h:670
@ CaseSensitive
Definition CString.h:23
Definition HttpPath.h:12
HTTPSERVER_API bool IsRoot() const
Definition HttpPath.cpp:54
HTTPSERVER_API FHttpPath()
Definition HttpPath.cpp:4
bool operator==(const FHttpPath &Other) const
Definition HttpPath.h:67
HTTPSERVER_API const FString & GetPath() const
Definition HttpPath.cpp:14
friend uint32 GetTypeHash(const FHttpPath &InPath)
Definition HttpPath.h:73
HTTPSERVER_API uint32 ParsePathTokens(TArray< FString > &OutPathTokens) const
Definition HttpPath.cpp:19
HTTPSERVER_API void SetPath(FString Path)
Definition HttpPath.cpp:24
HTTPSERVER_API bool IsValidPath() const
Definition HttpPath.cpp:30
HTTPSERVER_API void MakeRelative(const FString &OtherPath)
Definition HttpPath.cpp:59