# Record TCefServer

Description
Fields

## Unit

uCEFTypes

## Declaration

`type TCefServer = record`

## Description

Structure representing a server that supports HTTP and WebSocket requests. Server capacity is limited and is intended to handle only a small number of simultaneous connections (e.g. for communicating between applications on localhost). The functions of this structure are safe to call from any thread in the brower process unless otherwise indicated.

NOTE: This struct is allocated DLL-side.

Implemented by ICefServer.

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_server_capi.h">CEF source file: /include/capi/cef_server_capi.h (cef_server_t))

## Overview

### Fields

Public | `base: TCefBaseRefCounted;`
Public | `get_task_runner: function(self: PCefServer): PCefTaskRunner; stdcall;`
Public | `shutdown: procedure(self: PCefServer); stdcall;`
Public | `is_running: function(self: PCefServer): Integer; stdcall;`
Public | `get_address: function(self: PCefServer): PCefStringUserFree; stdcall;`
Public | `has_connection: function(self: PCefServer): Integer; stdcall;`
Public | `is_valid_connection: function(self: PCefServer; connection_id: Integer): Integer; stdcall;`
Public | `send_http200_response: procedure(self: PCefServer; connection_id: Integer; const content_type: PCefString; const data: Pointer; data_size: NativeUInt); stdcall;`
Public | `send_http404_response: procedure(self: PCefServer; connection_id: Integer); stdcall;`
Public | `send_http500_response: procedure(self: PCefServer; connection_id: Integer; const error_message: PCefString); stdcall;`
Public | `send_http_response: procedure(self: PCefServer; connection_id, response_code: Integer; const content_type: PCefString; content_length: int64; extra_headers: TCefStringMultimap); stdcall;`
Public | `send_raw_data: procedure(self: PCefServer; connection_id: Integer; const data: Pointer; data_size: NativeUInt); stdcall;`
Public | `close_connection: procedure(self: PCefServer; connection_id: Integer); stdcall;`
Public | `send_web_socket_message: procedure(self: PCefServer; connection_id: Integer; const data: Pointer; data_size: NativeUInt); stdcall;`

## Description

### Fields

Public | `base: TCefBaseRefCounted;`
This item has no description.

Public | `get_task_runner: function(self: PCefServer): PCefTaskRunner; stdcall;`
This item has no description.

Public | `shutdown: procedure(self: PCefServer); stdcall;`
This item has no description.

Public | `is_running: function(self: PCefServer): Integer; stdcall;`
This item has no description.

Public | `get_address: function(self: PCefServer): PCefStringUserFree; stdcall;`
This item has no description.

Public | `has_connection: function(self: PCefServer): Integer; stdcall;`
This item has no description.

Public | `is_valid_connection: function(self: PCefServer; connection_id: Integer): Integer; stdcall;`
This item has no description.

Public | `send_http200_response: procedure(self: PCefServer; connection_id: Integer; const content_type: PCefString; const data: Pointer; data_size: NativeUInt); stdcall;`
This item has no description.

Public | `send_http404_response: procedure(self: PCefServer; connection_id: Integer); stdcall;`
This item has no description.

Public | `send_http500_response: procedure(self: PCefServer; connection_id: Integer; const error_message: PCefString); stdcall;`
This item has no description.

Public | `send_http_response: procedure(self: PCefServer; connection_id, response_code: Integer; const content_type: PCefString; content_length: int64; extra_headers: TCefStringMultimap); stdcall;`
This item has no description.

Public | `send_raw_data: procedure(self: PCefServer; connection_id: Integer; const data: Pointer; data_size: NativeUInt); stdcall;`
This item has no description.

Public | `close_connection: procedure(self: PCefServer; connection_id: Integer); stdcall;`
This item has no description.

Public | `send_web_socket_message: procedure(self: PCefServer; connection_id: Integer; const data: Pointer; data_size: NativeUInt); stdcall;`
This item has no description.

Generated by PasDoc 1.0.4.