ResponseRecorder

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.net.http.httptest
  • Platforms: .NET, .NET Standard 2.0, Island

 

constructor

 

constructor

 

ResponseRecorder()

 

init()

 

Sub New()

 

// .NET, .NET Standard 2.0
constructor(aCode: Int64; aHeaderMap: Header; aBody: Memory<Buffer>; aFlushed: Boolean; aresult: Memory<Response>; asnapHeader: Header; awroteHeader: Boolean)
// Island
constructor(aCode: int; aHeaderMap: Header; aBody: Memory<Buffer>; aFlushed: bool; aresult: Memory<Response>; asnapHeader: Header; awroteHeader: bool)

 

// .NET, .NET Standard 2.0
ResponseRecorder(Int64 aCode, Header aHeaderMap, Memory<Buffer> aBody, Boolean aFlushed, Memory<Response> aresult, Header asnapHeader, Boolean awroteHeader)
// Island
ResponseRecorder(int aCode, Header aHeaderMap, Memory<Buffer> aBody, bool aFlushed, Memory<Response> aresult, Header asnapHeader, bool awroteHeader)

 

// .NET, .NET Standard 2.0
init(_ aCode: Int64, _ aHeaderMap: Header, _ aBody: Memory<Buffer>, _ aFlushed: Boolean, _ aresult: Memory<Response>, _ asnapHeader: Header, _ awroteHeader: Boolean)
// Island
init(_ aCode: int, _ aHeaderMap: Header, _ aBody: Memory<Buffer>, _ aFlushed: bool, _ aresult: Memory<Response>, _ asnapHeader: Header, _ awroteHeader: bool)

 

// .NET, .NET Standard 2.0
Sub New(aCode As Int64, aHeaderMap As Header, aBody As Memory<Buffer>, aFlushed As Boolean, aresult As Memory<Response>, asnapHeader As Header, awroteHeader As Boolean)
// Island
Sub New(aCode As int, aHeaderMap As Header, aBody As Memory<Buffer>, aFlushed As bool, aresult As Memory<Response>, asnapHeader As Header, awroteHeader As bool)

Parameters:

  • aCode:
  • aHeaderMap:
  • aBody:
  • aFlushed:
  • aresult:
  • asnapHeader:
  • awroteHeader:

constructor (ResponseRecorder)

 

constructor(value: ResponseRecorder)

 

ResponseRecorder(ResponseRecorder value)

 

init(_ value: ResponseRecorder)

 

Sub New(value As ResponseRecorder)

Parameters:

  • value:

Body

 

// .NET, .NET Standard 2.0
var Body: Memory<Buffer>;
// Island
var Body: Memory<Buffer>;

 

// .NET, .NET Standard 2.0
Memory<Buffer> Body
// Island
Memory<Buffer> Body

 

// .NET, .NET Standard 2.0
var Body: Memory<Buffer>
// Island
var Body: Memory<Buffer>

 

// .NET, .NET Standard 2.0
Body Memory<Buffer>
// Island
Body Memory<Buffer>

 

// .NET, .NET Standard 2.0
FIELD Body() As Memory<Buffer>
// Island
FIELD Body() As Memory<Buffer>

Code

 

var Code: int;

 

int Code

 

var Code: int

 

Code int

 

FIELD Code() As int

Flush

 

method Flush

 

void Flush()

 

func Flush()

 

// .NET, .NET Standard 2.0
func Flush() 
// Island
func Flush() void

 

Sub Flush()

Flushed

 

var Flushed: bool;

 

bool Flushed

 

var Flushed: bool

 

Flushed bool

 

FIELD Flushed() As bool

 

method Header: Header

 

Header Header()

 

func Header() -> Header

 

func Header() Header

 

Function Header() As Header

HeaderMap

 

var HeaderMap: Header;

 

Header HeaderMap

 

var HeaderMap: Header

 

HeaderMap Header

 

FIELD HeaderMap() As Header

Result

 

// .NET, .NET Standard 2.0
method Result: Memory<Response>
// Island
method Result: Memory<Response>

 

// .NET, .NET Standard 2.0
Memory<Response> Result()
// Island
Memory<Response> Result()

 

// .NET, .NET Standard 2.0
func Result() -> Memory<Response>
// Island
func Result() -> Memory<Response>

 

// .NET, .NET Standard 2.0
func Result() Memory<Response>
// Island
func Result() Memory<Response>

 

// .NET, .NET Standard 2.0
Function Result() As Memory<Response>
// Island
Function Result() As Memory<Response>

Write

 

method Write(buf: Slice<Byte>): tuple of (Int64, error)

 

(Int64, error) Write(Slice<Byte> buf)

 

func Write(_ buf: Slice<Byte>) -> (Int64, error)

 

func Write(buf Slice<Byte>) tuple of (Int64, error)

 

Function Write(buf As Slice<Byte>) As Tuple (Of Int64, error)

Parameters:

  • buf:

WriteHeader

 

method WriteHeader(code: int)

 

void WriteHeader(int code)

 

func WriteHeader(_ code: int)

 

// .NET, .NET Standard 2.0
func WriteHeader(code int) 
// Island
func WriteHeader(code int) void

 

Sub WriteHeader(code As int)

Parameters:

  • code:

WriteString

 

method WriteString(str: string): tuple of (Int64, error)

 

(Int64, error) WriteString(string str)

 

func WriteString(_ str: string) -> (Int64, error)

 

func WriteString(str string) tuple of (Int64, error)

 

Function WriteString(str As string) As Tuple (Of Int64, error)

Parameters:

  • str:

 

Body

 

// .NET, .NET Standard 2.0
var Body: Memory<Buffer>;
// Island
var Body: Memory<Buffer>;

 

// .NET, .NET Standard 2.0
Memory<Buffer> Body
// Island
Memory<Buffer> Body

 

// .NET, .NET Standard 2.0
var Body: Memory<Buffer>
// Island
var Body: Memory<Buffer>

 

// .NET, .NET Standard 2.0
Body Memory<Buffer>
// Island
Body Memory<Buffer>

 

// .NET, .NET Standard 2.0
FIELD Body() As Memory<Buffer>
// Island
FIELD Body() As Memory<Buffer>

Code

 

var Code: int;

 

int Code

 

var Code: int

 

Code int

 

FIELD Code() As int

Flushed

 

var Flushed: bool;

 

bool Flushed

 

var Flushed: bool

 

Flushed bool

 

FIELD Flushed() As bool

HeaderMap

 

var HeaderMap: Header;

 

Header HeaderMap

 

var HeaderMap: Header

 

HeaderMap Header

 

FIELD HeaderMap() As Header

 

constructor

 

constructor

 

ResponseRecorder()

 

init()

 

Sub New()

 

// .NET, .NET Standard 2.0
constructor(aCode: Int64; aHeaderMap: Header; aBody: Memory<Buffer>; aFlushed: Boolean; aresult: Memory<Response>; asnapHeader: Header; awroteHeader: Boolean)
// Island
constructor(aCode: int; aHeaderMap: Header; aBody: Memory<Buffer>; aFlushed: bool; aresult: Memory<Response>; asnapHeader: Header; awroteHeader: bool)

 

// .NET, .NET Standard 2.0
ResponseRecorder(Int64 aCode, Header aHeaderMap, Memory<Buffer> aBody, Boolean aFlushed, Memory<Response> aresult, Header asnapHeader, Boolean awroteHeader)
// Island
ResponseRecorder(int aCode, Header aHeaderMap, Memory<Buffer> aBody, bool aFlushed, Memory<Response> aresult, Header asnapHeader, bool awroteHeader)

 

// .NET, .NET Standard 2.0
init(_ aCode: Int64, _ aHeaderMap: Header, _ aBody: Memory<Buffer>, _ aFlushed: Boolean, _ aresult: Memory<Response>, _ asnapHeader: Header, _ awroteHeader: Boolean)
// Island
init(_ aCode: int, _ aHeaderMap: Header, _ aBody: Memory<Buffer>, _ aFlushed: bool, _ aresult: Memory<Response>, _ asnapHeader: Header, _ awroteHeader: bool)

 

// .NET, .NET Standard 2.0
Sub New(aCode As Int64, aHeaderMap As Header, aBody As Memory<Buffer>, aFlushed As Boolean, aresult As Memory<Response>, asnapHeader As Header, awroteHeader As Boolean)
// Island
Sub New(aCode As int, aHeaderMap As Header, aBody As Memory<Buffer>, aFlushed As bool, aresult As Memory<Response>, asnapHeader As Header, awroteHeader As bool)

Parameters:

  • aCode:
  • aHeaderMap:
  • aBody:
  • aFlushed:
  • aresult:
  • asnapHeader:
  • awroteHeader:

constructor (ResponseRecorder)

 

constructor(value: ResponseRecorder)

 

ResponseRecorder(ResponseRecorder value)

 

init(_ value: ResponseRecorder)

 

Sub New(value As ResponseRecorder)

Parameters:

  • value: