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()

constructor (int, Header, Reference<Buffer>, bool, Reference<Response>, Header, bool) Island

 

constructor(aCode: int; aHeaderMap: Header; aBody: Reference<Buffer>; aFlushed: bool; aresult: Reference<Response>; asnapHeader: Header; awroteHeader: bool)

 

ResponseRecorder(int aCode, Header aHeaderMap, Reference<Buffer> aBody, bool aFlushed, Reference<Response> aresult, Header asnapHeader, bool awroteHeader)

 

init(_ aCode: int, _ aHeaderMap: Header, _ aBody: Reference<Buffer>, _ aFlushed: bool, _ aresult: Reference<Response>, _ asnapHeader: Header, _ awroteHeader: bool)

Parameters:

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

constructor (Int64, Header, Reference<Buffer>, Boolean, Reference<Response>, Header, Boolean) .NET, .NET Standard 2.0

 

constructor(aCode: Int64; aHeaderMap: Header; aBody: Reference<Buffer>; aFlushed: Boolean; aresult: Reference<Response>; asnapHeader: Header; awroteHeader: Boolean)

 

ResponseRecorder(Int64 aCode, Header aHeaderMap, Reference<Buffer> aBody, Boolean aFlushed, Reference<Response> aresult, Header asnapHeader, Boolean awroteHeader)

 

init(_ aCode: Int64, _ aHeaderMap: Header, _ aBody: Reference<Buffer>, _ aFlushed: Boolean, _ aresult: Reference<Response>, _ asnapHeader: Header, _ awroteHeader: Boolean)

Parameters:

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

constructor (ResponseRecorder)

 

constructor(value: ResponseRecorder)

 

ResponseRecorder(ResponseRecorder value)

 

init(_ value: ResponseRecorder)

Parameters:

  • value:

Body

 

var Body: Reference<Buffer>;

 

Reference<Buffer> Body

 

var Body: Reference<Buffer>

 

Body Reference<Buffer>

Code

 

var Code: int;

 

int Code

 

var Code: int

 

Code int

Flush

 

method Flush

 

void Flush()

 

func Flush()

 

func Flush()

Flushed

 

var Flushed: bool;

 

bool Flushed

 

var Flushed: bool

 

Flushed bool

Header

 

method Header: Header

 

Header Header()

 

func Header() -> Header

 

func Header() Header

HeaderMap

 

var HeaderMap: Header;

 

Header HeaderMap

 

var HeaderMap: Header

 

HeaderMap Header

Result

 

method Result: Reference<Response>

 

Reference<Response> Result()

 

func Result() -> Reference<Response>

 

func Result() Reference<Response>

Write

 

// .NET, Island
method Write(buf: Slice<Byte>): tuple of (Int64, error)
// .NET Standard 2.0
method Write(buf: Slice<Byte>): ValueTuple<Int64, error>

 

// .NET, Island
(Int64, error) Write(Slice<Byte> buf)
// .NET Standard 2.0
ValueTuple<Int64, error> Write(Slice<Byte> buf)

 

// .NET, Island
func Write(_ buf: Slice<Byte>) -> (Int64, error)
// .NET Standard 2.0
func Write(_ buf: Slice<Byte>) -> ValueTuple<Int64, error>

 

// .NET, Island
func Write(buf Slice<Byte>) (Int64, error)
// .NET Standard 2.0
func Write(buf Slice<Byte>) ValueTuple<Int64, error>

Parameters:

  • buf:

WriteHeader

 

method WriteHeader(code: int)

 

void WriteHeader(int code)

 

func WriteHeader(_ code: int)

 

func WriteHeader(code int)

Parameters:

  • code:

WriteString

 

// .NET, Island
method WriteString(str: string): tuple of (Int64, error)
// .NET Standard 2.0
method WriteString(str: string): ValueTuple<Int64, error>

 

// .NET, Island
(Int64, error) WriteString(string str)
// .NET Standard 2.0
ValueTuple<Int64, error> WriteString(string str)

 

// .NET, Island
func WriteString(_ str: string) -> (Int64, error)
// .NET Standard 2.0
func WriteString(_ str: string) -> ValueTuple<Int64, error>

 

// .NET, Island
func WriteString(str string) (Int64, error)
// .NET Standard 2.0
func WriteString(str string) ValueTuple<Int64, error>

Parameters:

  • str:

 

Body

 

var Body: Reference<Buffer>;

 

Reference<Buffer> Body

 

var Body: Reference<Buffer>

 

Body Reference<Buffer>

Code

 

var Code: int;

 

int Code

 

var Code: int

 

Code int

Flushed

 

var Flushed: bool;

 

bool Flushed

 

var Flushed: bool

 

Flushed bool

HeaderMap

 

var HeaderMap: Header;

 

Header HeaderMap

 

var HeaderMap: Header

 

HeaderMap Header

 

constructor

 

constructor

 

ResponseRecorder()

 

init()

constructor (int, Header, Reference<Buffer>, bool, Reference<Response>, Header, bool) Island

 

constructor(aCode: int; aHeaderMap: Header; aBody: Reference<Buffer>; aFlushed: bool; aresult: Reference<Response>; asnapHeader: Header; awroteHeader: bool)

 

ResponseRecorder(int aCode, Header aHeaderMap, Reference<Buffer> aBody, bool aFlushed, Reference<Response> aresult, Header asnapHeader, bool awroteHeader)

 

init(_ aCode: int, _ aHeaderMap: Header, _ aBody: Reference<Buffer>, _ aFlushed: bool, _ aresult: Reference<Response>, _ asnapHeader: Header, _ awroteHeader: bool)

Parameters:

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

constructor (Int64, Header, Reference<Buffer>, Boolean, Reference<Response>, Header, Boolean) .NET, .NET Standard 2.0

 

constructor(aCode: Int64; aHeaderMap: Header; aBody: Reference<Buffer>; aFlushed: Boolean; aresult: Reference<Response>; asnapHeader: Header; awroteHeader: Boolean)

 

ResponseRecorder(Int64 aCode, Header aHeaderMap, Reference<Buffer> aBody, Boolean aFlushed, Reference<Response> aresult, Header asnapHeader, Boolean awroteHeader)

 

init(_ aCode: Int64, _ aHeaderMap: Header, _ aBody: Reference<Buffer>, _ aFlushed: Boolean, _ aresult: Reference<Response>, _ asnapHeader: Header, _ awroteHeader: Boolean)

Parameters:

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

constructor (ResponseRecorder)

 

constructor(value: ResponseRecorder)

 

ResponseRecorder(ResponseRecorder value)

 

init(_ value: ResponseRecorder)

Parameters:

  • value:

Flush

 

method Flush

 

void Flush()

 

func Flush()

 

func Flush()

Header

 

method Header: Header

 

Header Header()

 

func Header() -> Header

 

func Header() Header

Result

 

method Result: Reference<Response>

 

Reference<Response> Result()

 

func Result() -> Reference<Response>

 

func Result() Reference<Response>

Write

 

// .NET, Island
method Write(buf: Slice<Byte>): tuple of (Int64, error)
// .NET Standard 2.0
method Write(buf: Slice<Byte>): ValueTuple<Int64, error>

 

// .NET, Island
(Int64, error) Write(Slice<Byte> buf)
// .NET Standard 2.0
ValueTuple<Int64, error> Write(Slice<Byte> buf)

 

// .NET, Island
func Write(_ buf: Slice<Byte>) -> (Int64, error)
// .NET Standard 2.0
func Write(_ buf: Slice<Byte>) -> ValueTuple<Int64, error>

 

// .NET, Island
func Write(buf Slice<Byte>) (Int64, error)
// .NET Standard 2.0
func Write(buf Slice<Byte>) ValueTuple<Int64, error>

Parameters:

  • buf:

WriteHeader

 

method WriteHeader(code: int)

 

void WriteHeader(int code)

 

func WriteHeader(_ code: int)

 

func WriteHeader(code int)

Parameters:

  • code:

WriteString

 

// .NET, Island
method WriteString(str: string): tuple of (Int64, error)
// .NET Standard 2.0
method WriteString(str: string): ValueTuple<Int64, error>

 

// .NET, Island
(Int64, error) WriteString(string str)
// .NET Standard 2.0
ValueTuple<Int64, error> WriteString(string str)

 

// .NET, Island
func WriteString(_ str: string) -> (Int64, error)
// .NET Standard 2.0
func WriteString(_ str: string) -> ValueTuple<Int64, error>

 

// .NET, Island
func WriteString(str string) (Int64, error)
// .NET Standard 2.0
func WriteString(str string) ValueTuple<Int64, error>

Parameters:

  • str: