Skip to Content
Internet Protocol
Unreal Engine Plugin

HTTP Server Openssl

HTTP server over TLS (OpenSSL) for Unreal Engine: Blueprint nodes, events and C++ usage with the Internet Protocol plugin.

References

#include "http/httpserver.h"

How to use

Blueprint: search by GetInternetProtocolSubsystem and call CreateHttpServer function

C++: Use the code bellow

#include "http/httpserver.h"

FSecurityContextOpts SecOpts = { ... };
UHttpServerSsl* net = NewObject<UHttpServerSsl>();
// Required: a TLS server needs a certificate and a private key
net->Construct(SecOpts);

TLS options

  • SecOpts configures certificates, keys and verification. See Security Context Options for every field and its default.
  • Since 3.0.2 the connection is secure by default: TLS 1.2+, peer verification with the system root certificates and, for clients, host name verification + SNI.

4.0: one class for TLS and plain connections

Since 4.0, HttpServerSsl is the HttpServer class with Use Tls turned on. You can also use a plain HttpServer and call Set Tls Options with a certificate and a private key before Open. The connections it accepts are the shared HttpRemote class.

Functions

This class has the same variables, functions and events as HttpServer.

Edit on GitHub

On this page