Response

Overview

Location

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

Implements

 

constructor

 

constructor

 

Response()

 

init()

 

Sub New()

 

constructor(aStatus: string; aStatusCode: int; aProto: string; aProtoMajor: int; aProtoMinor: int; aHeader: Header; aBody: ReadCloser; aContentLength: int64; aTransferEncoding: Slice<string>; aClose: bool; aUncompressed: bool; aTrailer: Header; aRequest: Reference<Request>; aTLS: Reference<ConnectionState>)

 

Response(string aStatus, int aStatusCode, string aProto, int aProtoMajor, int aProtoMinor, Header aHeader, ReadCloser aBody, int64 aContentLength, Slice<string> aTransferEncoding, bool aClose, bool aUncompressed, Header aTrailer, Reference<Request> aRequest, Reference<ConnectionState> aTLS)

 

init(_ aStatus: string, _ aStatusCode: int, _ aProto: string, _ aProtoMajor: int, _ aProtoMinor: int, _ aHeader: Header, _ aBody: ReadCloser, _ aContentLength: int64, _ aTransferEncoding: Slice<string>, _ aClose: bool, _ aUncompressed: bool, _ aTrailer: Header, _ aRequest: Reference<Request>, _ aTLS: Reference<ConnectionState>)

 

Sub New(aStatus As string, aStatusCode As int, aProto As string, aProtoMajor As int, aProtoMinor As int, aHeader As Header, aBody As ReadCloser, aContentLength As int64, aTransferEncoding As Slice<string>, aClose As bool, aUncompressed As bool, aTrailer As Header, aRequest As Reference<Request>, aTLS As Reference<ConnectionState>)

Parameters:

  • aStatus:
  • aStatusCode:
  • aProto:
  • aProtoMajor:
  • aProtoMinor:
  • aHeader:
  • aBody:
  • aContentLength:
  • aTransferEncoding:
  • aClose:
  • aUncompressed:
  • aTrailer:
  • aRequest:
  • aTLS:

constructor (Response)

 

constructor(value: Response)

 

Response(Response value)

 

init(_ value: Response)

 

Sub New(value As Response)

Parameters:

  • value:

Body

 

var Body: ReadCloser;

 

ReadCloser Body

 

var Body: ReadCloser

 

Body ReadCloser

 

FIELD Body() As ReadCloser

Close

 

var Close: bool;

 

bool Close

 

var Close: bool

 

Close bool

 

FIELD Close() As bool

ContentLength

 

var ContentLength: int64;

 

int64 ContentLength

 

var ContentLength: int64

 

ContentLength int64

 

FIELD ContentLength() As int64

Cookies

 

method Cookies: Slice<Reference<Cookie>>

 

Slice<Reference<Cookie>> Cookies()

 

func Cookies() -> Slice<Reference<Cookie>>

 

func Cookies() Slice<Reference<Cookie>>

 

Function Cookies() As Slice<Reference<Cookie>>

Header

 

var Header: Header;

 

Header Header

 

var Header: Header

 

Header Header

 

FIELD Header() As Header

Location

 

method Location: tuple of (URL, error)

 

(URL, error) Location()

 

func Location() -> (URL, error)

 

func Location() (URL, error)

 

Function Location() As Tuple (Of URL, error)

Proto

 

var Proto: string;

 

string Proto

 

var Proto: string

 

Proto string

 

FIELD Proto() As string

ProtoAtLeast

 

method ProtoAtLeast(major: int; minor: int): bool

 

bool ProtoAtLeast(int major, int minor)

 

func ProtoAtLeast(_ major: int, _ minor: int) -> bool

 

func ProtoAtLeast(major int, minor int) bool

 

Function ProtoAtLeast(major As int, minor As int) As bool

Parameters:

  • major:
  • minor:

ProtoMajor

 

var ProtoMajor: int;

 

int ProtoMajor

 

var ProtoMajor: int

 

ProtoMajor int

 

FIELD ProtoMajor() As int

ProtoMinor

 

var ProtoMinor: int;

 

int ProtoMinor

 

var ProtoMinor: int

 

ProtoMinor int

 

FIELD ProtoMinor() As int

Request

 

var Request: Reference<Request>;

 

Reference<Request> Request

 

var Request: Reference<Request>

 

Request Reference<Request>

 

FIELD Request() As Reference<Request>

Status

 

var Status: string;

 

string Status

 

var Status: string

 

Status string

 

FIELD Status() As string

StatusCode

 

var StatusCode: int;

 

int StatusCode

 

var StatusCode: int

 

StatusCode int

 

FIELD StatusCode() As int

TLS


Trailer

 

var Trailer: Header;

 

Header Trailer

 

var Trailer: Header

 

Trailer Header

 

FIELD Trailer() As Header

TransferEncoding

 

var TransferEncoding: Slice<string>;

 

Slice<string> TransferEncoding

 

var TransferEncoding: Slice<string>

 

TransferEncoding Slice<string>

 

FIELD TransferEncoding() As Slice<string>

Uncompressed

 

var Uncompressed: bool;

 

bool Uncompressed

 

var Uncompressed: bool

 

Uncompressed bool

 

FIELD Uncompressed() As bool

Write

 

method Write(w: Writer): error

 

error Write(Writer w)

 

func Write(_ w: Writer) -> error

 

func Write(w Writer) error

 

Function Write(w As Writer) As error

Parameters:

  • w:

 

Body

 

var Body: ReadCloser;

 

ReadCloser Body

 

var Body: ReadCloser

 

Body ReadCloser

 

FIELD Body() As ReadCloser

Close

 

var Close: bool;

 

bool Close

 

var Close: bool

 

Close bool

 

FIELD Close() As bool

ContentLength

 

var ContentLength: int64;

 

int64 ContentLength

 

var ContentLength: int64

 

ContentLength int64

 

FIELD ContentLength() As int64

Header

 

var Header: Header;

 

Header Header

 

var Header: Header

 

Header Header

 

FIELD Header() As Header

Proto

 

var Proto: string;

 

string Proto

 

var Proto: string

 

Proto string

 

FIELD Proto() As string

ProtoMajor

 

var ProtoMajor: int;

 

int ProtoMajor

 

var ProtoMajor: int

 

ProtoMajor int

 

FIELD ProtoMajor() As int

ProtoMinor

 

var ProtoMinor: int;

 

int ProtoMinor

 

var ProtoMinor: int

 

ProtoMinor int

 

FIELD ProtoMinor() As int

Request

 

var Request: Reference<Request>;

 

Reference<Request> Request

 

var Request: Reference<Request>

 

Request Reference<Request>

 

FIELD Request() As Reference<Request>

Status

 

var Status: string;

 

string Status

 

var Status: string

 

Status string

 

FIELD Status() As string

StatusCode

 

var StatusCode: int;

 

int StatusCode

 

var StatusCode: int

 

StatusCode int

 

FIELD StatusCode() As int

TLS


Trailer

 

var Trailer: Header;

 

Header Trailer

 

var Trailer: Header

 

Trailer Header

 

FIELD Trailer() As Header

TransferEncoding

 

var TransferEncoding: Slice<string>;

 

Slice<string> TransferEncoding

 

var TransferEncoding: Slice<string>

 

TransferEncoding Slice<string>

 

FIELD TransferEncoding() As Slice<string>

Uncompressed

 

var Uncompressed: bool;

 

bool Uncompressed

 

var Uncompressed: bool

 

Uncompressed bool

 

FIELD Uncompressed() As bool

 

constructor

 

constructor

 

Response()

 

init()

 

Sub New()

 

constructor(aStatus: string; aStatusCode: int; aProto: string; aProtoMajor: int; aProtoMinor: int; aHeader: Header; aBody: ReadCloser; aContentLength: int64; aTransferEncoding: Slice<string>; aClose: bool; aUncompressed: bool; aTrailer: Header; aRequest: Reference<Request>; aTLS: Reference<ConnectionState>)

 

Response(string aStatus, int aStatusCode, string aProto, int aProtoMajor, int aProtoMinor, Header aHeader, ReadCloser aBody, int64 aContentLength, Slice<string> aTransferEncoding, bool aClose, bool aUncompressed, Header aTrailer, Reference<Request> aRequest, Reference<ConnectionState> aTLS)

 

init(_ aStatus: string, _ aStatusCode: int, _ aProto: string, _ aProtoMajor: int, _ aProtoMinor: int, _ aHeader: Header, _ aBody: ReadCloser, _ aContentLength: int64, _ aTransferEncoding: Slice<string>, _ aClose: bool, _ aUncompressed: bool, _ aTrailer: Header, _ aRequest: Reference<Request>, _ aTLS: Reference<ConnectionState>)

 

Sub New(aStatus As string, aStatusCode As int, aProto As string, aProtoMajor As int, aProtoMinor As int, aHeader As Header, aBody As ReadCloser, aContentLength As int64, aTransferEncoding As Slice<string>, aClose As bool, aUncompressed As bool, aTrailer As Header, aRequest As Reference<Request>, aTLS As Reference<ConnectionState>)

Parameters:

  • aStatus:
  • aStatusCode:
  • aProto:
  • aProtoMajor:
  • aProtoMinor:
  • aHeader:
  • aBody:
  • aContentLength:
  • aTransferEncoding:
  • aClose:
  • aUncompressed:
  • aTrailer:
  • aRequest:
  • aTLS:

constructor (Response)

 

constructor(value: Response)

 

Response(Response value)

 

init(_ value: Response)

 

Sub New(value As Response)

Parameters:

  • value:

Cookies

 

method Cookies: Slice<Reference<Cookie>>

 

Slice<Reference<Cookie>> Cookies()

 

func Cookies() -> Slice<Reference<Cookie>>

 

func Cookies() Slice<Reference<Cookie>>

 

Function Cookies() As Slice<Reference<Cookie>>

Location

 

method Location: tuple of (URL, error)

 

(URL, error) Location()

 

func Location() -> (URL, error)

 

func Location() (URL, error)

 

Function Location() As Tuple (Of URL, error)

ProtoAtLeast

 

method ProtoAtLeast(major: int; minor: int): bool

 

bool ProtoAtLeast(int major, int minor)

 

func ProtoAtLeast(_ major: int, _ minor: int) -> bool

 

func ProtoAtLeast(major int, minor int) bool

 

Function ProtoAtLeast(major As int, minor As int) As bool

Parameters:

  • major:
  • minor:

Write

 

method Write(w: Writer): error

 

error Write(Writer w)

 

func Write(_ w: Writer) -> error

 

func Write(w Writer) error

 

Function Write(w As Writer) As error

Parameters:

  • w: