LLVM 20.0.0git
Classes | Namespaces | Typedefs | Functions
HTTPServer.h File Reference

This file contains the declarations of the HTTPServer and HTTPServerRequest classes, the HTTPResponse, and StreamingHTTPResponse structs, and the streamFile function. More...

#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Error.h"

Go to the source code of this file.

Classes

class  llvm::HTTPServerError
 
class  llvm::HTTPServerRequest
 
struct  llvm::HTTPResponse
 
struct  llvm::StreamingHTTPResponse
 Wraps the content provider with HTTP Status code and headers. More...
 
class  llvm::HTTPServer
 An HTTP server which can listen on a single TCP/IP port for HTTP requests and delgate them to the appropriate registered handler. More...
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Typedefs

typedef std::function< void(HTTPServerRequest &)> llvm::HTTPRequestHandler
 
typedef std::function< StringRef(size_t, size_t)> llvm::HTTPContentProvider
 An HTTPContentProvider is called by the HTTPServer to obtain chunks of the streaming response body.
 

Functions

bool llvm::streamFile (HTTPServerRequest &Request, StringRef FilePath)
 Sets the response to stream the file at FilePath, if available, and otherwise an HTTP 404 error response.
 

Detailed Description

This file contains the declarations of the HTTPServer and HTTPServerRequest classes, the HTTPResponse, and StreamingHTTPResponse structs, and the streamFile function.

Definition in file HTTPServer.h.