Server

Overview

Location

  • Reference: Go.fx
  • Namespace: go.net.http
  • Platforms: Island

 

constructor

 

constructor

 

Server()

 

init()

 

Sub New()

constructor (Server)

 

constructor(value: Server)

 

Server(Server value)

 

init(_ value: Server)

 

Sub New(value As Server)

Parameters:

  • value:

Addr

 

var Addr: string;

 

string Addr

 

var Addr: string

 

Addr string

 

FIELD Addr() As string

BaseContext

 

var BaseContext: Func<go.net.Listener,go.context.Context>;

 

Func<go.net.Listener,go.context.Context> BaseContext

 

var BaseContext: Func<go.net.Listener,go.context.Context>

 

BaseContext Func<go.net.Listener,go.context.Context>

 

FIELD BaseContext() As Func<go.net.Listener,go.context.Context>

Close

 

method Close: error

 

error Close()

 

func Close() -> error

 

func Close() error

 

Function Close() As error

ConnContext

 

var ConnContext: Func<go.context.Context,go.net.Conn,go.context.Context>;

 

Func<go.context.Context,go.net.Conn,go.context.Context> ConnContext

 

var ConnContext: Func<go.context.Context,go.net.Conn,go.context.Context>

 

ConnContext Func<go.context.Context,go.net.Conn,go.context.Context>

 

FIELD ConnContext() As Func<go.context.Context,go.net.Conn,go.context.Context>

ConnState

 

var ConnState: Action<go.net.Conn,go.net.http.ConnState>;

 

Action<go.net.Conn,go.net.http.ConnState> ConnState

 

var ConnState: Action<go.net.Conn,go.net.http.ConnState>

 

ConnState Action<go.net.Conn,go.net.http.ConnState>

 

FIELD ConnState() As Action<go.net.Conn,go.net.http.ConnState>

ErrorLog

 

var ErrorLog: Reference<Logger>;

 

Reference<Logger> ErrorLog

 

var ErrorLog: Reference<Logger>

 

ErrorLog Reference<Logger>

 

FIELD ErrorLog() As Reference<Logger>

Handler

 

var Handler: Handler;

 

Handler Handler

 

var Handler: Handler

 

Handler Handler

 

FIELD Handler() As Handler

IdleTimeout

 

var IdleTimeout: Duration;

 

Duration IdleTimeout

 

var IdleTimeout: Duration

 

IdleTimeout Duration

 

FIELD IdleTimeout() As Duration

ListenAndServe

 

method ListenAndServe: error

 

error ListenAndServe()

 

func ListenAndServe() -> error

 

func ListenAndServe() error

 

Function ListenAndServe() As error

ListenAndServeTLS

 

method ListenAndServeTLS(certFile: string; keyFile: string): error

 

error ListenAndServeTLS(string certFile, string keyFile)

 

func ListenAndServeTLS(_ certFile: string, _ keyFile: string) -> error

 

func ListenAndServeTLS(certFile string, keyFile string) error

 

Function ListenAndServeTLS(certFile As string, keyFile As string) As error

Parameters:

  • certFile:
  • keyFile:

MaxHeaderBytes

 

var MaxHeaderBytes: int;

 

int MaxHeaderBytes

 

var MaxHeaderBytes: int

 

MaxHeaderBytes int

 

FIELD MaxHeaderBytes() As int

ReadHeaderTimeout

 

var ReadHeaderTimeout: Duration;

 

Duration ReadHeaderTimeout

 

var ReadHeaderTimeout: Duration

 

ReadHeaderTimeout Duration

 

FIELD ReadHeaderTimeout() As Duration

ReadTimeout

 

var ReadTimeout: Duration;

 

Duration ReadTimeout

 

var ReadTimeout: Duration

 

ReadTimeout Duration

 

FIELD ReadTimeout() As Duration

RegisterOnShutdown

 

method RegisterOnShutdown(f: Action)

 

void RegisterOnShutdown(Action f)

 

func RegisterOnShutdown(_ f: Action)

 

func RegisterOnShutdown(f Action)

 

Sub RegisterOnShutdown(f As Action)

Parameters:

  • f:

Serve

 

method Serve(l: Listener): error

 

error Serve(Listener l)

 

func Serve(_ l: Listener) -> error

 

func Serve(l Listener) error

 

Function Serve(l As Listener) As error

Parameters:

  • l:

ServeTLS

 

method ServeTLS(l: Listener; certFile: string; keyFile: string): error

 

error ServeTLS(Listener l, string certFile, string keyFile)

 

func ServeTLS(_ l: Listener, _ certFile: string, _ keyFile: string) -> error

 

func ServeTLS(l Listener, certFile string, keyFile string) error

 

Function ServeTLS(l As Listener, certFile As string, keyFile As string) As error

Parameters:

  • l:
  • certFile:
  • keyFile:

SetKeepAlivesEnabled

 

method SetKeepAlivesEnabled(v: bool)

 

void SetKeepAlivesEnabled(bool v)

 

func SetKeepAlivesEnabled(_ v: bool)

 

func SetKeepAlivesEnabled(v bool)

 

Sub SetKeepAlivesEnabled(v As bool)

Parameters:

  • v:

Shutdown

 

method Shutdown(ctx: Context): error

 

error Shutdown(Context ctx)

 

func Shutdown(_ ctx: Context) -> error

 

func Shutdown(ctx Context) error

 

Function Shutdown(ctx As Context) As error

Parameters:

  • ctx:

TLSConfig

 

var TLSConfig: Reference<Config>;

 

Reference<Config> TLSConfig

 

var TLSConfig: Reference<Config>

 

TLSConfig Reference<Config>

 

FIELD TLSConfig() As Reference<Config>

TLSNextProto

 

var TLSNextProto: Map<string, Action<Reference<Server>, Reference<Conn>, Handler>>;

 

Map<string, Action<Reference<Server>, Reference<Conn>, Handler>> TLSNextProto

 

var TLSNextProto: Map<string, Action<Reference<Server>, Reference<Conn>, Handler>>

 

TLSNextProto Map<string, Action<Reference<Server>, Reference<Conn>, Handler>>

 

FIELD TLSNextProto() As Map<string, Action<Reference<Server>, Reference<Conn>, Handler>>

WriteTimeout

 

var WriteTimeout: Duration;

 

Duration WriteTimeout

 

var WriteTimeout: Duration

 

WriteTimeout Duration

 

FIELD WriteTimeout() As Duration

 

Addr

 

var Addr: string;

 

string Addr

 

var Addr: string

 

Addr string

 

FIELD Addr() As string

BaseContext

 

var BaseContext: Func<go.net.Listener,go.context.Context>;

 

Func<go.net.Listener,go.context.Context> BaseContext

 

var BaseContext: Func<go.net.Listener,go.context.Context>

 

BaseContext Func<go.net.Listener,go.context.Context>

 

FIELD BaseContext() As Func<go.net.Listener,go.context.Context>

ConnContext

 

var ConnContext: Func<go.context.Context,go.net.Conn,go.context.Context>;

 

Func<go.context.Context,go.net.Conn,go.context.Context> ConnContext

 

var ConnContext: Func<go.context.Context,go.net.Conn,go.context.Context>

 

ConnContext Func<go.context.Context,go.net.Conn,go.context.Context>

 

FIELD ConnContext() As Func<go.context.Context,go.net.Conn,go.context.Context>

ConnState

 

var ConnState: Action<go.net.Conn,go.net.http.ConnState>;

 

Action<go.net.Conn,go.net.http.ConnState> ConnState

 

var ConnState: Action<go.net.Conn,go.net.http.ConnState>

 

ConnState Action<go.net.Conn,go.net.http.ConnState>

 

FIELD ConnState() As Action<go.net.Conn,go.net.http.ConnState>

ErrorLog

 

var ErrorLog: Reference<Logger>;

 

Reference<Logger> ErrorLog

 

var ErrorLog: Reference<Logger>

 

ErrorLog Reference<Logger>

 

FIELD ErrorLog() As Reference<Logger>

Handler

 

var Handler: Handler;

 

Handler Handler

 

var Handler: Handler

 

Handler Handler

 

FIELD Handler() As Handler

IdleTimeout

 

var IdleTimeout: Duration;

 

Duration IdleTimeout

 

var IdleTimeout: Duration

 

IdleTimeout Duration

 

FIELD IdleTimeout() As Duration

MaxHeaderBytes

 

var MaxHeaderBytes: int;

 

int MaxHeaderBytes

 

var MaxHeaderBytes: int

 

MaxHeaderBytes int

 

FIELD MaxHeaderBytes() As int

ReadHeaderTimeout

 

var ReadHeaderTimeout: Duration;

 

Duration ReadHeaderTimeout

 

var ReadHeaderTimeout: Duration

 

ReadHeaderTimeout Duration

 

FIELD ReadHeaderTimeout() As Duration

ReadTimeout

 

var ReadTimeout: Duration;

 

Duration ReadTimeout

 

var ReadTimeout: Duration

 

ReadTimeout Duration

 

FIELD ReadTimeout() As Duration

TLSConfig

 

var TLSConfig: Reference<Config>;

 

Reference<Config> TLSConfig

 

var TLSConfig: Reference<Config>

 

TLSConfig Reference<Config>

 

FIELD TLSConfig() As Reference<Config>

TLSNextProto

 

var TLSNextProto: Map<string, Action<Reference<Server>, Reference<Conn>, Handler>>;

 

Map<string, Action<Reference<Server>, Reference<Conn>, Handler>> TLSNextProto

 

var TLSNextProto: Map<string, Action<Reference<Server>, Reference<Conn>, Handler>>

 

TLSNextProto Map<string, Action<Reference<Server>, Reference<Conn>, Handler>>

 

FIELD TLSNextProto() As Map<string, Action<Reference<Server>, Reference<Conn>, Handler>>

WriteTimeout

 

var WriteTimeout: Duration;

 

Duration WriteTimeout

 

var WriteTimeout: Duration

 

WriteTimeout Duration

 

FIELD WriteTimeout() As Duration

 

constructor

 

constructor

 

Server()

 

init()

 

Sub New()

constructor (Server)

 

constructor(value: Server)

 

Server(Server value)

 

init(_ value: Server)

 

Sub New(value As Server)

Parameters:

  • value:

Close

 

method Close: error

 

error Close()

 

func Close() -> error

 

func Close() error

 

Function Close() As error

ListenAndServe

 

method ListenAndServe: error

 

error ListenAndServe()

 

func ListenAndServe() -> error

 

func ListenAndServe() error

 

Function ListenAndServe() As error

ListenAndServeTLS

 

method ListenAndServeTLS(certFile: string; keyFile: string): error

 

error ListenAndServeTLS(string certFile, string keyFile)

 

func ListenAndServeTLS(_ certFile: string, _ keyFile: string) -> error

 

func ListenAndServeTLS(certFile string, keyFile string) error

 

Function ListenAndServeTLS(certFile As string, keyFile As string) As error

Parameters:

  • certFile:
  • keyFile:

RegisterOnShutdown

 

method RegisterOnShutdown(f: Action)

 

void RegisterOnShutdown(Action f)

 

func RegisterOnShutdown(_ f: Action)

 

func RegisterOnShutdown(f Action)

 

Sub RegisterOnShutdown(f As Action)

Parameters:

  • f:

Serve

 

method Serve(l: Listener): error

 

error Serve(Listener l)

 

func Serve(_ l: Listener) -> error

 

func Serve(l Listener) error

 

Function Serve(l As Listener) As error

Parameters:

  • l:

ServeTLS

 

method ServeTLS(l: Listener; certFile: string; keyFile: string): error

 

error ServeTLS(Listener l, string certFile, string keyFile)

 

func ServeTLS(_ l: Listener, _ certFile: string, _ keyFile: string) -> error

 

func ServeTLS(l Listener, certFile string, keyFile string) error

 

Function ServeTLS(l As Listener, certFile As string, keyFile As string) As error

Parameters:

  • l:
  • certFile:
  • keyFile:

SetKeepAlivesEnabled

 

method SetKeepAlivesEnabled(v: bool)

 

void SetKeepAlivesEnabled(bool v)

 

func SetKeepAlivesEnabled(_ v: bool)

 

func SetKeepAlivesEnabled(v bool)

 

Sub SetKeepAlivesEnabled(v As bool)

Parameters:

  • v:

Shutdown

 

method Shutdown(ctx: Context): error

 

error Shutdown(Context ctx)

 

func Shutdown(_ ctx: Context) -> error

 

func Shutdown(ctx Context) error

 

Function Shutdown(ctx As Context) As error

Parameters:

  • ctx: