websession

package
Version: v0.0.0-...-d169734 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const HttpStatus = uint64(0xaf480a0c6cab8887)
View Source
const (
	HttpStatusAnnotationId = uint64(12630356203439622279)
)

Constants defined in web-session.capnp.

View Source
const HttpStatusDescriptor_TypeID = 0xbc353583a3731ade

HttpStatusDescriptor_TypeID is the unique identifier for the type HttpStatusDescriptor.

View Source
const WebSession_AcceptedEncoding_TypeID = 0xbda585bffe1dc7e8

WebSession_AcceptedEncoding_TypeID is the unique identifier for the type WebSession_AcceptedEncoding.

View Source
const WebSession_AcceptedType_TypeID = 0xaaf9021b627cc1f9

WebSession_AcceptedType_TypeID is the unique identifier for the type WebSession_AcceptedType.

View Source
const WebSession_CachePolicy_Scope_TypeID = 0x81535505f60de028

WebSession_CachePolicy_Scope_TypeID is the unique identifier for the type WebSession_CachePolicy_Scope.

View Source
const WebSession_CachePolicy_TypeID = 0xb37b21e300864885

WebSession_CachePolicy_TypeID is the unique identifier for the type WebSession_CachePolicy.

View Source
const WebSession_Context_Header_TypeID = 0xb4e5f4cccb748429

WebSession_Context_Header_TypeID is the unique identifier for the type WebSession_Context_Header.

View Source
const WebSession_Context_TypeID = 0xf5cae52becabc767

WebSession_Context_TypeID is the unique identifier for the type WebSession_Context.

View Source
const WebSession_Cookie_TypeID = 0xa87d65bed9b60243

WebSession_Cookie_TypeID is the unique identifier for the type WebSession_Cookie.

View Source
const WebSession_ETag_TypeID = 0xd22c0be5b9c16558

WebSession_ETag_TypeID is the unique identifier for the type WebSession_ETag.

View Source
const WebSession_Options_TypeID = 0xe9ff06beec4e73d6

WebSession_Options_TypeID is the unique identifier for the type WebSession_Options.

View Source
const WebSession_Params_TypeID = 0xd7051b9757f6b096

WebSession_Params_TypeID is the unique identifier for the type WebSession_Params.

View Source
const WebSession_PostContent_TypeID = 0xb7d82eac416ab63e

WebSession_PostContent_TypeID is the unique identifier for the type WebSession_PostContent.

View Source
const WebSession_PropfindDepth_TypeID = 0xb39cc44599b3a41b

WebSession_PropfindDepth_TypeID is the unique identifier for the type WebSession_PropfindDepth.

View Source
const WebSession_PutContent_TypeID = 0xd7aff1fe39659132

WebSession_PutContent_TypeID is the unique identifier for the type WebSession_PutContent.

View Source
const WebSession_RequestStream_TypeID = 0x99ffc2f3f69a6a9f

WebSession_RequestStream_TypeID is the unique identifier for the type WebSession_RequestStream.

View Source
const WebSession_RequestStream_getResponse_Params_TypeID = 0xe9a02a3219bdbd70

WebSession_RequestStream_getResponse_Params_TypeID is the unique identifier for the type WebSession_RequestStream_getResponse_Params.

View Source
const WebSession_Response_ClientErrorCode_TypeID = 0x8ea31bdb4c044f01

WebSession_Response_ClientErrorCode_TypeID is the unique identifier for the type WebSession_Response_ClientErrorCode.

View Source
const WebSession_Response_ErrorBody_TypeID = 0x9497e63b399a2c01

WebSession_Response_ErrorBody_TypeID is the unique identifier for the type WebSession_Response_ErrorBody.

View Source
const WebSession_Response_Header_TypeID = 0xb4b873147ab5ce5e

WebSession_Response_Header_TypeID is the unique identifier for the type WebSession_Response_Header.

View Source
const WebSession_Response_SuccessCode_TypeID = 0x82130007ccd2888f

WebSession_Response_SuccessCode_TypeID is the unique identifier for the type WebSession_Response_SuccessCode.

View Source
const WebSession_Response_TypeID = 0x8193ac6cb5429c83

WebSession_Response_TypeID is the unique identifier for the type WebSession_Response.

View Source
const WebSession_TypeID = 0xa50711a14d35a8ce

WebSession_TypeID is the unique identifier for the type WebSession.

View Source
const WebSession_WebSocketStream_TypeID = 0xf001fc1d5e574a07

WebSession_WebSocketStream_TypeID is the unique identifier for the type WebSession_WebSocketStream.

View Source
const WebSession_WebSocketStream_sendBytes_Params_TypeID = 0x9a712ce3fcad8cd8

WebSession_WebSocketStream_sendBytes_Params_TypeID is the unique identifier for the type WebSession_WebSocketStream_sendBytes_Params.

View Source
const WebSession_WebSocketStream_sendBytes_Results_TypeID = 0x82a3ee23aa0ae3a3

WebSession_WebSocketStream_sendBytes_Results_TypeID is the unique identifier for the type WebSession_WebSocketStream_sendBytes_Results.

View Source
const WebSession_acl_Params_TypeID = 0x9f79c33e20119e8d

WebSession_acl_Params_TypeID is the unique identifier for the type WebSession_acl_Params.

View Source
const WebSession_copy_Params_TypeID = 0x8139673a82bfe07d

WebSession_copy_Params_TypeID is the unique identifier for the type WebSession_copy_Params.

View Source
const WebSession_delete_Params_TypeID = 0xeba76bffb27b1975

WebSession_delete_Params_TypeID is the unique identifier for the type WebSession_delete_Params.

View Source
const WebSession_get_Params_TypeID = 0xcd94acddf4778328

WebSession_get_Params_TypeID is the unique identifier for the type WebSession_get_Params.

View Source
const WebSession_lock_Params_TypeID = 0x9398280f1359570a

WebSession_lock_Params_TypeID is the unique identifier for the type WebSession_lock_Params.

View Source
const WebSession_mkcol_Params_TypeID = 0xf64da2416445f8b6

WebSession_mkcol_Params_TypeID is the unique identifier for the type WebSession_mkcol_Params.

View Source
const WebSession_move_Params_TypeID = 0x81f5066b5576a609

WebSession_move_Params_TypeID is the unique identifier for the type WebSession_move_Params.

View Source
const WebSession_openWebSocket_Params_TypeID = 0xc7c9c9b19d935e79

WebSession_openWebSocket_Params_TypeID is the unique identifier for the type WebSession_openWebSocket_Params.

View Source
const WebSession_openWebSocket_Results_TypeID = 0xcc561276d31b392b

WebSession_openWebSocket_Results_TypeID is the unique identifier for the type WebSession_openWebSocket_Results.

View Source
const WebSession_options_Params_TypeID = 0xd2e47e8eac54ea7e

WebSession_options_Params_TypeID is the unique identifier for the type WebSession_options_Params.

View Source
const WebSession_patch_Params_TypeID = 0xadef95edc22ca880

WebSession_patch_Params_TypeID is the unique identifier for the type WebSession_patch_Params.

View Source
const WebSession_postStreaming_Params_TypeID = 0xd26a7affce43b1c0

WebSession_postStreaming_Params_TypeID is the unique identifier for the type WebSession_postStreaming_Params.

View Source
const WebSession_postStreaming_Results_TypeID = 0xbf0e0653dc266205

WebSession_postStreaming_Results_TypeID is the unique identifier for the type WebSession_postStreaming_Results.

View Source
const WebSession_post_Params_TypeID = 0xaa6ef20a62c1cafd

WebSession_post_Params_TypeID is the unique identifier for the type WebSession_post_Params.

View Source
const WebSession_propfind_Params_TypeID = 0xca2d58de88f0b32e

WebSession_propfind_Params_TypeID is the unique identifier for the type WebSession_propfind_Params.

View Source
const WebSession_proppatch_Params_TypeID = 0x9e582e7e054088ae

WebSession_proppatch_Params_TypeID is the unique identifier for the type WebSession_proppatch_Params.

View Source
const WebSession_putStreaming_Params_TypeID = 0xa1ece076a7105939

WebSession_putStreaming_Params_TypeID is the unique identifier for the type WebSession_putStreaming_Params.

View Source
const WebSession_putStreaming_Results_TypeID = 0xc60d14bf989d4454

WebSession_putStreaming_Results_TypeID is the unique identifier for the type WebSession_putStreaming_Results.

View Source
const WebSession_put_Params_TypeID = 0xf1c587295608596e

WebSession_put_Params_TypeID is the unique identifier for the type WebSession_put_Params.

View Source
const WebSession_report_Params_TypeID = 0xc0643ea68efc60ae

WebSession_report_Params_TypeID is the unique identifier for the type WebSession_report_Params.

View Source
const WebSession_unlock_Params_TypeID = 0xd684c6a791b97dbc

WebSession_unlock_Params_TypeID is the unique identifier for the type WebSession_unlock_Params.

Variables

View Source
var (
	WebSession_Context_headerWhitelist  = capnp.TextList{List: capnp.MustUnmarshalRoot(x_a8cb0f2f1a756b32[0:248]).List()}
	WebSession_Response_headerWhitelist = capnp.TextList{List: capnp.MustUnmarshalRoot(x_a8cb0f2f1a756b32[248:320]).List()}
)

Constants defined in web-session.capnp.

Functions

func WebSession_Methods

func WebSession_Methods(methods []server.Method, s WebSession_Server) []server.Method

WebSession_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.

func WebSession_NewServer

func WebSession_NewServer(s WebSession_Server, policy *server.Policy) *server.Server

WebSession_NewServer creates a new Server from an implementation of WebSession_Server.

func WebSession_RequestStream_Methods

func WebSession_RequestStream_Methods(methods []server.Method, s WebSession_RequestStream_Server) []server.Method

WebSession_RequestStream_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.

func WebSession_RequestStream_NewServer

func WebSession_RequestStream_NewServer(s WebSession_RequestStream_Server, policy *server.Policy) *server.Server

WebSession_RequestStream_NewServer creates a new Server from an implementation of WebSession_RequestStream_Server.

func WebSession_WebSocketStream_Methods

func WebSession_WebSocketStream_Methods(methods []server.Method, s WebSession_WebSocketStream_Server) []server.Method

WebSession_WebSocketStream_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.

func WebSession_WebSocketStream_NewServer

func WebSession_WebSocketStream_NewServer(s WebSession_WebSocketStream_Server, policy *server.Policy) *server.Server

WebSession_WebSocketStream_NewServer creates a new Server from an implementation of WebSession_WebSocketStream_Server.

Types

type HttpStatusDescriptor

type HttpStatusDescriptor struct{ capnp.Struct }

func NewHttpStatusDescriptor

func NewHttpStatusDescriptor(s *capnp.Segment) (HttpStatusDescriptor, error)

func NewRootHttpStatusDescriptor

func NewRootHttpStatusDescriptor(s *capnp.Segment) (HttpStatusDescriptor, error)

func ReadRootHttpStatusDescriptor

func ReadRootHttpStatusDescriptor(msg *capnp.Message) (HttpStatusDescriptor, error)

func (HttpStatusDescriptor) HasTitle

func (s HttpStatusDescriptor) HasTitle() bool

func (HttpStatusDescriptor) Id

func (HttpStatusDescriptor) SetId

func (s HttpStatusDescriptor) SetId(v uint16)

func (HttpStatusDescriptor) SetTitle

func (s HttpStatusDescriptor) SetTitle(v string) error

func (HttpStatusDescriptor) String

func (s HttpStatusDescriptor) String() string

func (HttpStatusDescriptor) Title

func (s HttpStatusDescriptor) Title() (string, error)

func (HttpStatusDescriptor) TitleBytes

func (s HttpStatusDescriptor) TitleBytes() ([]byte, error)

type HttpStatusDescriptor_Future

type HttpStatusDescriptor_Future struct{ *capnp.Future }

HttpStatusDescriptor_Future is a wrapper for a HttpStatusDescriptor promised by a client call.

func (HttpStatusDescriptor_Future) Struct

type HttpStatusDescriptor_List

type HttpStatusDescriptor_List struct{ capnp.List }

HttpStatusDescriptor_List is a list of HttpStatusDescriptor.

func NewHttpStatusDescriptor_List

func NewHttpStatusDescriptor_List(s *capnp.Segment, sz int32) (HttpStatusDescriptor_List, error)

NewHttpStatusDescriptor creates a new list of HttpStatusDescriptor.

func (HttpStatusDescriptor_List) At

func (HttpStatusDescriptor_List) Set

func (HttpStatusDescriptor_List) String

func (s HttpStatusDescriptor_List) String() string

type WebSession

type WebSession struct{ Client *capnp.Client }

func WebSession_ServerToClient

func WebSession_ServerToClient(s WebSession_Server, policy *server.Policy) WebSession

WebSession_ServerToClient creates a new Client from an implementation of WebSession_Server. The caller is responsible for calling Release on the returned Client.

type WebSession_AcceptedEncoding

type WebSession_AcceptedEncoding struct{ capnp.Struct }

func NewRootWebSession_AcceptedEncoding

func NewRootWebSession_AcceptedEncoding(s *capnp.Segment) (WebSession_AcceptedEncoding, error)

func NewWebSession_AcceptedEncoding

func NewWebSession_AcceptedEncoding(s *capnp.Segment) (WebSession_AcceptedEncoding, error)

func ReadRootWebSession_AcceptedEncoding

func ReadRootWebSession_AcceptedEncoding(msg *capnp.Message) (WebSession_AcceptedEncoding, error)

func (WebSession_AcceptedEncoding) ContentCoding

func (s WebSession_AcceptedEncoding) ContentCoding() (string, error)

func (WebSession_AcceptedEncoding) ContentCodingBytes

func (s WebSession_AcceptedEncoding) ContentCodingBytes() ([]byte, error)

func (WebSession_AcceptedEncoding) HasContentCoding

func (s WebSession_AcceptedEncoding) HasContentCoding() bool

func (WebSession_AcceptedEncoding) QValue

func (WebSession_AcceptedEncoding) SetContentCoding

func (s WebSession_AcceptedEncoding) SetContentCoding(v string) error

func (WebSession_AcceptedEncoding) SetQValue

func (s WebSession_AcceptedEncoding) SetQValue(v float32)

func (WebSession_AcceptedEncoding) String

type WebSession_AcceptedEncoding_Future

type WebSession_AcceptedEncoding_Future struct{ *capnp.Future }

WebSession_AcceptedEncoding_Future is a wrapper for a WebSession_AcceptedEncoding promised by a client call.

func (WebSession_AcceptedEncoding_Future) Struct

type WebSession_AcceptedEncoding_List

type WebSession_AcceptedEncoding_List struct{ capnp.List }

WebSession_AcceptedEncoding_List is a list of WebSession_AcceptedEncoding.

func NewWebSession_AcceptedEncoding_List

func NewWebSession_AcceptedEncoding_List(s *capnp.Segment, sz int32) (WebSession_AcceptedEncoding_List, error)

NewWebSession_AcceptedEncoding creates a new list of WebSession_AcceptedEncoding.

func (WebSession_AcceptedEncoding_List) At

func (WebSession_AcceptedEncoding_List) Set

func (WebSession_AcceptedEncoding_List) String

type WebSession_AcceptedType

type WebSession_AcceptedType struct{ capnp.Struct }

func NewRootWebSession_AcceptedType

func NewRootWebSession_AcceptedType(s *capnp.Segment) (WebSession_AcceptedType, error)

func NewWebSession_AcceptedType

func NewWebSession_AcceptedType(s *capnp.Segment) (WebSession_AcceptedType, error)

func ReadRootWebSession_AcceptedType

func ReadRootWebSession_AcceptedType(msg *capnp.Message) (WebSession_AcceptedType, error)

func (WebSession_AcceptedType) HasMimeType

func (s WebSession_AcceptedType) HasMimeType() bool

func (WebSession_AcceptedType) MimeType

func (s WebSession_AcceptedType) MimeType() (string, error)

func (WebSession_AcceptedType) MimeTypeBytes

func (s WebSession_AcceptedType) MimeTypeBytes() ([]byte, error)

func (WebSession_AcceptedType) QValue

func (s WebSession_AcceptedType) QValue() float32

func (WebSession_AcceptedType) SetMimeType

func (s WebSession_AcceptedType) SetMimeType(v string) error

func (WebSession_AcceptedType) SetQValue

func (s WebSession_AcceptedType) SetQValue(v float32)

func (WebSession_AcceptedType) String

func (s WebSession_AcceptedType) String() string

type WebSession_AcceptedType_Future

type WebSession_AcceptedType_Future struct{ *capnp.Future }

WebSession_AcceptedType_Future is a wrapper for a WebSession_AcceptedType promised by a client call.

func (WebSession_AcceptedType_Future) Struct

type WebSession_AcceptedType_List

type WebSession_AcceptedType_List struct{ capnp.List }

WebSession_AcceptedType_List is a list of WebSession_AcceptedType.

func NewWebSession_AcceptedType_List

func NewWebSession_AcceptedType_List(s *capnp.Segment, sz int32) (WebSession_AcceptedType_List, error)

NewWebSession_AcceptedType creates a new list of WebSession_AcceptedType.

func (WebSession_AcceptedType_List) At

func (WebSession_AcceptedType_List) Set

func (WebSession_AcceptedType_List) String

type WebSession_CachePolicy

type WebSession_CachePolicy struct{ capnp.Struct }

func NewRootWebSession_CachePolicy

func NewRootWebSession_CachePolicy(s *capnp.Segment) (WebSession_CachePolicy, error)

func NewWebSession_CachePolicy

func NewWebSession_CachePolicy(s *capnp.Segment) (WebSession_CachePolicy, error)

func ReadRootWebSession_CachePolicy

func ReadRootWebSession_CachePolicy(msg *capnp.Message) (WebSession_CachePolicy, error)

func (WebSession_CachePolicy) Permanent

func (WebSession_CachePolicy) SetPermanent

func (WebSession_CachePolicy) SetVariesOnAccept

func (s WebSession_CachePolicy) SetVariesOnAccept(v bool)

func (WebSession_CachePolicy) SetVariesOnCookie

func (s WebSession_CachePolicy) SetVariesOnCookie(v bool)

func (WebSession_CachePolicy) SetWithCheck

func (WebSession_CachePolicy) String

func (s WebSession_CachePolicy) String() string

func (WebSession_CachePolicy) VariesOnAccept

func (s WebSession_CachePolicy) VariesOnAccept() bool

func (WebSession_CachePolicy) VariesOnCookie

func (s WebSession_CachePolicy) VariesOnCookie() bool

func (WebSession_CachePolicy) WithCheck

type WebSession_CachePolicy_Future

type WebSession_CachePolicy_Future struct{ *capnp.Future }

WebSession_CachePolicy_Future is a wrapper for a WebSession_CachePolicy promised by a client call.

func (WebSession_CachePolicy_Future) Struct

type WebSession_CachePolicy_List

type WebSession_CachePolicy_List struct{ capnp.List }

WebSession_CachePolicy_List is a list of WebSession_CachePolicy.

func NewWebSession_CachePolicy_List

func NewWebSession_CachePolicy_List(s *capnp.Segment, sz int32) (WebSession_CachePolicy_List, error)

NewWebSession_CachePolicy creates a new list of WebSession_CachePolicy.

func (WebSession_CachePolicy_List) At

func (WebSession_CachePolicy_List) Set

func (WebSession_CachePolicy_List) String

type WebSession_CachePolicy_Scope

type WebSession_CachePolicy_Scope uint16
const (
	WebSession_CachePolicy_Scope_none          WebSession_CachePolicy_Scope = 0
	WebSession_CachePolicy_Scope_perSession    WebSession_CachePolicy_Scope = 1
	WebSession_CachePolicy_Scope_perUser       WebSession_CachePolicy_Scope = 2
	WebSession_CachePolicy_Scope_perAppVersion WebSession_CachePolicy_Scope = 3
	WebSession_CachePolicy_Scope_universal     WebSession_CachePolicy_Scope = 4
)

Values of WebSession_CachePolicy_Scope.

func WebSession_CachePolicy_ScopeFromString

func WebSession_CachePolicy_ScopeFromString(c string) WebSession_CachePolicy_Scope

WebSession_CachePolicy_ScopeFromString returns the enum value with a name, or the zero value if there's no such value.

func (WebSession_CachePolicy_Scope) String

String returns the enum's constant name.

type WebSession_CachePolicy_Scope_List

type WebSession_CachePolicy_Scope_List struct{ capnp.List }

func NewWebSession_CachePolicy_Scope_List

func NewWebSession_CachePolicy_Scope_List(s *capnp.Segment, sz int32) (WebSession_CachePolicy_Scope_List, error)

func (WebSession_CachePolicy_Scope_List) At

func (WebSession_CachePolicy_Scope_List) Set

type WebSession_Context

type WebSession_Context struct{ capnp.Struct }

func NewRootWebSession_Context

func NewRootWebSession_Context(s *capnp.Segment) (WebSession_Context, error)

func NewWebSession_Context

func NewWebSession_Context(s *capnp.Segment) (WebSession_Context, error)

func ReadRootWebSession_Context

func ReadRootWebSession_Context(msg *capnp.Message) (WebSession_Context, error)

func (WebSession_Context) Accept

func (WebSession_Context) AcceptEncoding

func (WebSession_Context) AdditionalHeaders

func (s WebSession_Context) AdditionalHeaders() (WebSession_Context_Header_List, error)

func (WebSession_Context) Cookies

func (s WebSession_Context) Cookies() (util.KeyValue_List, error)

func (WebSession_Context) ETagPrecondition

func (WebSession_Context) HasAccept

func (s WebSession_Context) HasAccept() bool

func (WebSession_Context) HasAcceptEncoding

func (s WebSession_Context) HasAcceptEncoding() bool

func (WebSession_Context) HasAdditionalHeaders

func (s WebSession_Context) HasAdditionalHeaders() bool

func (WebSession_Context) HasCookies

func (s WebSession_Context) HasCookies() bool

func (WebSession_Context) HasResponseStream

func (s WebSession_Context) HasResponseStream() bool

func (WebSession_Context) NewAccept

NewAccept sets the accept field to a newly allocated WebSession_AcceptedType_List, preferring placement in s's segment.

func (WebSession_Context) NewAcceptEncoding

NewAcceptEncoding sets the acceptEncoding field to a newly allocated WebSession_AcceptedEncoding_List, preferring placement in s's segment.

func (WebSession_Context) NewAdditionalHeaders

func (s WebSession_Context) NewAdditionalHeaders(n int32) (WebSession_Context_Header_List, error)

NewAdditionalHeaders sets the additionalHeaders field to a newly allocated WebSession_Context_Header_List, preferring placement in s's segment.

func (WebSession_Context) NewCookies

func (s WebSession_Context) NewCookies(n int32) (util.KeyValue_List, error)

NewCookies sets the cookies field to a newly allocated util.KeyValue_List, preferring placement in s's segment.

func (WebSession_Context) ResponseStream

func (s WebSession_Context) ResponseStream() util.ByteStream

func (WebSession_Context) SetAccept

func (WebSession_Context) SetAcceptEncoding

func (WebSession_Context) SetAdditionalHeaders

func (s WebSession_Context) SetAdditionalHeaders(v WebSession_Context_Header_List) error

func (WebSession_Context) SetCookies

func (s WebSession_Context) SetCookies(v util.KeyValue_List) error

func (WebSession_Context) SetResponseStream

func (s WebSession_Context) SetResponseStream(v util.ByteStream) error

func (WebSession_Context) String

func (s WebSession_Context) String() string

type WebSession_Context_Future

type WebSession_Context_Future struct{ *capnp.Future }

WebSession_Context_Future is a wrapper for a WebSession_Context promised by a client call.

func (WebSession_Context_Future) ETagPrecondition

func (WebSession_Context_Future) ResponseStream

func (p WebSession_Context_Future) ResponseStream() util.ByteStream

func (WebSession_Context_Future) Struct

type WebSession_Context_Header

type WebSession_Context_Header struct{ capnp.Struct }

func NewRootWebSession_Context_Header

func NewRootWebSession_Context_Header(s *capnp.Segment) (WebSession_Context_Header, error)

func NewWebSession_Context_Header

func NewWebSession_Context_Header(s *capnp.Segment) (WebSession_Context_Header, error)

func ReadRootWebSession_Context_Header

func ReadRootWebSession_Context_Header(msg *capnp.Message) (WebSession_Context_Header, error)

func (WebSession_Context_Header) HasName

func (s WebSession_Context_Header) HasName() bool

func (WebSession_Context_Header) HasValue

func (s WebSession_Context_Header) HasValue() bool

func (WebSession_Context_Header) Name

func (WebSession_Context_Header) NameBytes

func (s WebSession_Context_Header) NameBytes() ([]byte, error)

func (WebSession_Context_Header) SetName

func (s WebSession_Context_Header) SetName(v string) error

func (WebSession_Context_Header) SetValue

func (s WebSession_Context_Header) SetValue(v string) error

func (WebSession_Context_Header) String

func (s WebSession_Context_Header) String() string

func (WebSession_Context_Header) Value

func (s WebSession_Context_Header) Value() (string, error)

func (WebSession_Context_Header) ValueBytes

func (s WebSession_Context_Header) ValueBytes() ([]byte, error)

type WebSession_Context_Header_Future

type WebSession_Context_Header_Future struct{ *capnp.Future }

WebSession_Context_Header_Future is a wrapper for a WebSession_Context_Header promised by a client call.

func (WebSession_Context_Header_Future) Struct

type WebSession_Context_Header_List

type WebSession_Context_Header_List struct{ capnp.List }

WebSession_Context_Header_List is a list of WebSession_Context_Header.

func NewWebSession_Context_Header_List

func NewWebSession_Context_Header_List(s *capnp.Segment, sz int32) (WebSession_Context_Header_List, error)

NewWebSession_Context_Header creates a new list of WebSession_Context_Header.

func (WebSession_Context_Header_List) At

func (WebSession_Context_Header_List) Set

func (WebSession_Context_Header_List) String

type WebSession_Context_List

type WebSession_Context_List struct{ capnp.List }

WebSession_Context_List is a list of WebSession_Context.

func NewWebSession_Context_List

func NewWebSession_Context_List(s *capnp.Segment, sz int32) (WebSession_Context_List, error)

NewWebSession_Context creates a new list of WebSession_Context.

func (WebSession_Context_List) At

func (WebSession_Context_List) Set

func (WebSession_Context_List) String

func (s WebSession_Context_List) String() string

type WebSession_Context_eTagPrecondition

type WebSession_Context_eTagPrecondition WebSession_Context

func (WebSession_Context_eTagPrecondition) HasMatchesNoneOf

func (s WebSession_Context_eTagPrecondition) HasMatchesNoneOf() bool

func (WebSession_Context_eTagPrecondition) HasMatchesOneOf

func (s WebSession_Context_eTagPrecondition) HasMatchesOneOf() bool

func (WebSession_Context_eTagPrecondition) MatchesNoneOf

func (WebSession_Context_eTagPrecondition) MatchesOneOf

func (WebSession_Context_eTagPrecondition) NewMatchesNoneOf

NewMatchesNoneOf sets the matchesNoneOf field to a newly allocated WebSession_ETag_List, preferring placement in s's segment.

func (WebSession_Context_eTagPrecondition) NewMatchesOneOf

NewMatchesOneOf sets the matchesOneOf field to a newly allocated WebSession_ETag_List, preferring placement in s's segment.

func (WebSession_Context_eTagPrecondition) SetDoesntExist

func (s WebSession_Context_eTagPrecondition) SetDoesntExist()

func (WebSession_Context_eTagPrecondition) SetExists

func (WebSession_Context_eTagPrecondition) SetMatchesNoneOf

func (WebSession_Context_eTagPrecondition) SetMatchesOneOf

func (WebSession_Context_eTagPrecondition) SetNone

func (WebSession_Context_eTagPrecondition) Which

type WebSession_Context_eTagPrecondition_Future

type WebSession_Context_eTagPrecondition_Future struct{ *capnp.Future }

WebSession_Context_eTagPrecondition_Future is a wrapper for a WebSession_Context_eTagPrecondition promised by a client call.

func (WebSession_Context_eTagPrecondition_Future) Struct

type WebSession_Context_eTagPrecondition_Which

type WebSession_Context_eTagPrecondition_Which uint16
const (
	WebSession_Context_eTagPrecondition_Which_none          WebSession_Context_eTagPrecondition_Which = 0
	WebSession_Context_eTagPrecondition_Which_exists        WebSession_Context_eTagPrecondition_Which = 1
	WebSession_Context_eTagPrecondition_Which_doesntExist   WebSession_Context_eTagPrecondition_Which = 4
	WebSession_Context_eTagPrecondition_Which_matchesOneOf  WebSession_Context_eTagPrecondition_Which = 2
	WebSession_Context_eTagPrecondition_Which_matchesNoneOf WebSession_Context_eTagPrecondition_Which = 3
)

func (WebSession_Context_eTagPrecondition_Which) String

type WebSession_Cookie struct{ capnp.Struct }
func NewRootWebSession_Cookie(s *capnp.Segment) (WebSession_Cookie, error)
func NewWebSession_Cookie(s *capnp.Segment) (WebSession_Cookie, error)
func ReadRootWebSession_Cookie(msg *capnp.Message) (WebSession_Cookie, error)

func (WebSession_Cookie) Expires

func (WebSession_Cookie) HasName

func (s WebSession_Cookie) HasName() bool

func (WebSession_Cookie) HasPath

func (s WebSession_Cookie) HasPath() bool

func (WebSession_Cookie) HasValue

func (s WebSession_Cookie) HasValue() bool

func (WebSession_Cookie) HttpOnly

func (s WebSession_Cookie) HttpOnly() bool

func (WebSession_Cookie) Name

func (s WebSession_Cookie) Name() (string, error)

func (WebSession_Cookie) NameBytes

func (s WebSession_Cookie) NameBytes() ([]byte, error)

func (WebSession_Cookie) Path

func (s WebSession_Cookie) Path() (string, error)

func (WebSession_Cookie) PathBytes

func (s WebSession_Cookie) PathBytes() ([]byte, error)

func (WebSession_Cookie) SetHttpOnly

func (s WebSession_Cookie) SetHttpOnly(v bool)

func (WebSession_Cookie) SetName

func (s WebSession_Cookie) SetName(v string) error

func (WebSession_Cookie) SetPath

func (s WebSession_Cookie) SetPath(v string) error

func (WebSession_Cookie) SetValue

func (s WebSession_Cookie) SetValue(v string) error

func (WebSession_Cookie) String

func (s WebSession_Cookie) String() string

func (WebSession_Cookie) Value

func (s WebSession_Cookie) Value() (string, error)

func (WebSession_Cookie) ValueBytes

func (s WebSession_Cookie) ValueBytes() ([]byte, error)
type WebSession_Cookie_Future struct{ *capnp.Future }

WebSession_Cookie_Future is a wrapper for a WebSession_Cookie promised by a client call.

type WebSession_Cookie_List struct{ capnp.List }

WebSession_Cookie_List is a list of WebSession_Cookie.

func NewWebSession_Cookie_List(s *capnp.Segment, sz int32) (WebSession_Cookie_List, error)

NewWebSession_Cookie creates a new list of WebSession_Cookie.

func (s WebSession_Cookie_List) String() string
type WebSession_Cookie_expires WebSession_Cookie
func (s WebSession_Cookie_expires) Absolute() int64
func (s WebSession_Cookie_expires) Relative() uint64
func (s WebSession_Cookie_expires) SetAbsolute(v int64)
func (s WebSession_Cookie_expires) SetNone()
func (s WebSession_Cookie_expires) SetRelative(v uint64)
type WebSession_Cookie_expires_Future struct{ *capnp.Future }

WebSession_Cookie_expires_Future is a wrapper for a WebSession_Cookie_expires promised by a client call.

type WebSession_Cookie_expires_Which uint16
const (
	WebSession_Cookie_expires_Which_none     WebSession_Cookie_expires_Which = 0
	WebSession_Cookie_expires_Which_absolute WebSession_Cookie_expires_Which = 1
	WebSession_Cookie_expires_Which_relative WebSession_Cookie_expires_Which = 2
)

type WebSession_ETag

type WebSession_ETag struct{ capnp.Struct }

func NewRootWebSession_ETag

func NewRootWebSession_ETag(s *capnp.Segment) (WebSession_ETag, error)

func NewWebSession_ETag

func NewWebSession_ETag(s *capnp.Segment) (WebSession_ETag, error)

func ReadRootWebSession_ETag

func ReadRootWebSession_ETag(msg *capnp.Message) (WebSession_ETag, error)

func (WebSession_ETag) HasValue

func (s WebSession_ETag) HasValue() bool

func (WebSession_ETag) SetValue

func (s WebSession_ETag) SetValue(v string) error

func (WebSession_ETag) SetWeak

func (s WebSession_ETag) SetWeak(v bool)

func (WebSession_ETag) String

func (s WebSession_ETag) String() string

func (WebSession_ETag) Value

func (s WebSession_ETag) Value() (string, error)

func (WebSession_ETag) ValueBytes

func (s WebSession_ETag) ValueBytes() ([]byte, error)

func (WebSession_ETag) Weak

func (s WebSession_ETag) Weak() bool

type WebSession_ETag_Future

type WebSession_ETag_Future struct{ *capnp.Future }

WebSession_ETag_Future is a wrapper for a WebSession_ETag promised by a client call.

func (WebSession_ETag_Future) Struct

type WebSession_ETag_List

type WebSession_ETag_List struct{ capnp.List }

WebSession_ETag_List is a list of WebSession_ETag.

func NewWebSession_ETag_List

func NewWebSession_ETag_List(s *capnp.Segment, sz int32) (WebSession_ETag_List, error)

NewWebSession_ETag creates a new list of WebSession_ETag.

func (WebSession_ETag_List) At

func (WebSession_ETag_List) Set

func (WebSession_ETag_List) String

func (s WebSession_ETag_List) String() string

type WebSession_Options

type WebSession_Options struct{ capnp.Struct }

func NewRootWebSession_Options

func NewRootWebSession_Options(s *capnp.Segment) (WebSession_Options, error)

func NewWebSession_Options

func NewWebSession_Options(s *capnp.Segment) (WebSession_Options, error)

func ReadRootWebSession_Options

func ReadRootWebSession_Options(msg *capnp.Message) (WebSession_Options, error)

func (WebSession_Options) DavClass1

func (s WebSession_Options) DavClass1() bool

func (WebSession_Options) DavClass2

func (s WebSession_Options) DavClass2() bool

func (WebSession_Options) DavClass3

func (s WebSession_Options) DavClass3() bool

func (WebSession_Options) DavExtensions

func (s WebSession_Options) DavExtensions() (capnp.TextList, error)

func (WebSession_Options) HasDavExtensions

func (s WebSession_Options) HasDavExtensions() bool

func (WebSession_Options) NewDavExtensions

func (s WebSession_Options) NewDavExtensions(n int32) (capnp.TextList, error)

NewDavExtensions sets the davExtensions field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (WebSession_Options) SetDavClass1

func (s WebSession_Options) SetDavClass1(v bool)

func (WebSession_Options) SetDavClass2

func (s WebSession_Options) SetDavClass2(v bool)

func (WebSession_Options) SetDavClass3

func (s WebSession_Options) SetDavClass3(v bool)

func (WebSession_Options) SetDavExtensions

func (s WebSession_Options) SetDavExtensions(v capnp.TextList) error

func (WebSession_Options) String

func (s WebSession_Options) String() string

type WebSession_Options_Future

type WebSession_Options_Future struct{ *capnp.Future }

WebSession_Options_Future is a wrapper for a WebSession_Options promised by a client call.

func (WebSession_Options_Future) Struct

type WebSession_Options_List

type WebSession_Options_List struct{ capnp.List }

WebSession_Options_List is a list of WebSession_Options.

func NewWebSession_Options_List

func NewWebSession_Options_List(s *capnp.Segment, sz int32) (WebSession_Options_List, error)

NewWebSession_Options creates a new list of WebSession_Options.

func (WebSession_Options_List) At

func (WebSession_Options_List) Set

func (WebSession_Options_List) String

func (s WebSession_Options_List) String() string

type WebSession_Params

type WebSession_Params struct{ capnp.Struct }

func NewRootWebSession_Params

func NewRootWebSession_Params(s *capnp.Segment) (WebSession_Params, error)

func NewWebSession_Params

func NewWebSession_Params(s *capnp.Segment) (WebSession_Params, error)

func ReadRootWebSession_Params

func ReadRootWebSession_Params(msg *capnp.Message) (WebSession_Params, error)

func (WebSession_Params) AcceptableLanguages

func (s WebSession_Params) AcceptableLanguages() (capnp.TextList, error)

func (WebSession_Params) BasePath

func (s WebSession_Params) BasePath() (string, error)

func (WebSession_Params) BasePathBytes

func (s WebSession_Params) BasePathBytes() ([]byte, error)

func (WebSession_Params) HasAcceptableLanguages

func (s WebSession_Params) HasAcceptableLanguages() bool

func (WebSession_Params) HasBasePath

func (s WebSession_Params) HasBasePath() bool

func (WebSession_Params) HasUserAgent

func (s WebSession_Params) HasUserAgent() bool

func (WebSession_Params) NewAcceptableLanguages

func (s WebSession_Params) NewAcceptableLanguages(n int32) (capnp.TextList, error)

NewAcceptableLanguages sets the acceptableLanguages field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (WebSession_Params) SetAcceptableLanguages

func (s WebSession_Params) SetAcceptableLanguages(v capnp.TextList) error

func (WebSession_Params) SetBasePath

func (s WebSession_Params) SetBasePath(v string) error

func (WebSession_Params) SetUserAgent

func (s WebSession_Params) SetUserAgent(v string) error

func (WebSession_Params) String

func (s WebSession_Params) String() string

func (WebSession_Params) UserAgent

func (s WebSession_Params) UserAgent() (string, error)

func (WebSession_Params) UserAgentBytes

func (s WebSession_Params) UserAgentBytes() ([]byte, error)

type WebSession_Params_Future

type WebSession_Params_Future struct{ *capnp.Future }

WebSession_Params_Future is a wrapper for a WebSession_Params promised by a client call.

func (WebSession_Params_Future) Struct

type WebSession_Params_List

type WebSession_Params_List struct{ capnp.List }

WebSession_Params_List is a list of WebSession_Params.

func NewWebSession_Params_List

func NewWebSession_Params_List(s *capnp.Segment, sz int32) (WebSession_Params_List, error)

NewWebSession_Params creates a new list of WebSession_Params.

func (WebSession_Params_List) At

func (WebSession_Params_List) Set

func (WebSession_Params_List) String

func (s WebSession_Params_List) String() string

type WebSession_PostContent

type WebSession_PostContent struct{ capnp.Struct }

func NewRootWebSession_PostContent

func NewRootWebSession_PostContent(s *capnp.Segment) (WebSession_PostContent, error)

func NewWebSession_PostContent

func NewWebSession_PostContent(s *capnp.Segment) (WebSession_PostContent, error)

func ReadRootWebSession_PostContent

func ReadRootWebSession_PostContent(msg *capnp.Message) (WebSession_PostContent, error)

func (WebSession_PostContent) Content

func (s WebSession_PostContent) Content() ([]byte, error)

func (WebSession_PostContent) Encoding

func (s WebSession_PostContent) Encoding() (string, error)

func (WebSession_PostContent) EncodingBytes

func (s WebSession_PostContent) EncodingBytes() ([]byte, error)

func (WebSession_PostContent) HasContent

func (s WebSession_PostContent) HasContent() bool

func (WebSession_PostContent) HasEncoding

func (s WebSession_PostContent) HasEncoding() bool

func (WebSession_PostContent) HasMimeType

func (s WebSession_PostContent) HasMimeType() bool

func (WebSession_PostContent) MimeType

func (s WebSession_PostContent) MimeType() (string, error)

func (WebSession_PostContent) MimeTypeBytes

func (s WebSession_PostContent) MimeTypeBytes() ([]byte, error)

func (WebSession_PostContent) SetContent

func (s WebSession_PostContent) SetContent(v []byte) error

func (WebSession_PostContent) SetEncoding

func (s WebSession_PostContent) SetEncoding(v string) error

func (WebSession_PostContent) SetMimeType

func (s WebSession_PostContent) SetMimeType(v string) error

func (WebSession_PostContent) String

func (s WebSession_PostContent) String() string

type WebSession_PostContent_Future

type WebSession_PostContent_Future struct{ *capnp.Future }

WebSession_PostContent_Future is a wrapper for a WebSession_PostContent promised by a client call.

func (WebSession_PostContent_Future) Struct

type WebSession_PostContent_List

type WebSession_PostContent_List struct{ capnp.List }

WebSession_PostContent_List is a list of WebSession_PostContent.

func NewWebSession_PostContent_List

func NewWebSession_PostContent_List(s *capnp.Segment, sz int32) (WebSession_PostContent_List, error)

NewWebSession_PostContent creates a new list of WebSession_PostContent.

func (WebSession_PostContent_List) At

func (WebSession_PostContent_List) Set

func (WebSession_PostContent_List) String

type WebSession_PropfindDepth

type WebSession_PropfindDepth uint16
const (
	WebSession_PropfindDepth_infinity WebSession_PropfindDepth = 0
	WebSession_PropfindDepth_zero     WebSession_PropfindDepth = 1
	WebSession_PropfindDepth_one      WebSession_PropfindDepth = 2
)

Values of WebSession_PropfindDepth.

func WebSession_PropfindDepthFromString

func WebSession_PropfindDepthFromString(c string) WebSession_PropfindDepth

WebSession_PropfindDepthFromString returns the enum value with a name, or the zero value if there's no such value.

func (WebSession_PropfindDepth) String

func (c WebSession_PropfindDepth) String() string

String returns the enum's constant name.

type WebSession_PropfindDepth_List

type WebSession_PropfindDepth_List struct{ capnp.List }

func NewWebSession_PropfindDepth_List

func NewWebSession_PropfindDepth_List(s *capnp.Segment, sz int32) (WebSession_PropfindDepth_List, error)

func (WebSession_PropfindDepth_List) At

func (WebSession_PropfindDepth_List) Set

type WebSession_PutContent

type WebSession_PutContent struct{ capnp.Struct }

func NewRootWebSession_PutContent

func NewRootWebSession_PutContent(s *capnp.Segment) (WebSession_PutContent, error)

func NewWebSession_PutContent

func NewWebSession_PutContent(s *capnp.Segment) (WebSession_PutContent, error)

func ReadRootWebSession_PutContent

func ReadRootWebSession_PutContent(msg *capnp.Message) (WebSession_PutContent, error)

func (WebSession_PutContent) Content

func (s WebSession_PutContent) Content() ([]byte, error)

func (WebSession_PutContent) Encoding

func (s WebSession_PutContent) Encoding() (string, error)

func (WebSession_PutContent) EncodingBytes

func (s WebSession_PutContent) EncodingBytes() ([]byte, error)

func (WebSession_PutContent) HasContent

func (s WebSession_PutContent) HasContent() bool

func (WebSession_PutContent) HasEncoding

func (s WebSession_PutContent) HasEncoding() bool

func (WebSession_PutContent) HasMimeType

func (s WebSession_PutContent) HasMimeType() bool

func (WebSession_PutContent) MimeType

func (s WebSession_PutContent) MimeType() (string, error)

func (WebSession_PutContent) MimeTypeBytes

func (s WebSession_PutContent) MimeTypeBytes() ([]byte, error)

func (WebSession_PutContent) SetContent

func (s WebSession_PutContent) SetContent(v []byte) error

func (WebSession_PutContent) SetEncoding

func (s WebSession_PutContent) SetEncoding(v string) error

func (WebSession_PutContent) SetMimeType

func (s WebSession_PutContent) SetMimeType(v string) error

func (WebSession_PutContent) String

func (s WebSession_PutContent) String() string

type WebSession_PutContent_Future

type WebSession_PutContent_Future struct{ *capnp.Future }

WebSession_PutContent_Future is a wrapper for a WebSession_PutContent promised by a client call.

func (WebSession_PutContent_Future) Struct

type WebSession_PutContent_List

type WebSession_PutContent_List struct{ capnp.List }

WebSession_PutContent_List is a list of WebSession_PutContent.

func NewWebSession_PutContent_List

func NewWebSession_PutContent_List(s *capnp.Segment, sz int32) (WebSession_PutContent_List, error)

NewWebSession_PutContent creates a new list of WebSession_PutContent.

func (WebSession_PutContent_List) At

func (WebSession_PutContent_List) Set

func (WebSession_PutContent_List) String

type WebSession_RequestStream

type WebSession_RequestStream struct{ Client *capnp.Client }

func WebSession_RequestStream_ServerToClient

func WebSession_RequestStream_ServerToClient(s WebSession_RequestStream_Server, policy *server.Policy) WebSession_RequestStream

WebSession_RequestStream_ServerToClient creates a new Client from an implementation of WebSession_RequestStream_Server. The caller is responsible for calling Release on the returned Client.

type WebSession_RequestStream_Server

A WebSession_RequestStream_Server is a WebSession_RequestStream with a local implementation.

type WebSession_RequestStream_getResponse

type WebSession_RequestStream_getResponse struct {
	*server.Call
}

WebSession_RequestStream_getResponse holds the state for a server call to WebSession_RequestStream.getResponse. See server.Call for documentation.

func (WebSession_RequestStream_getResponse) AllocResults

AllocResults allocates the results struct.

func (WebSession_RequestStream_getResponse) Args

Args returns the call's arguments.

type WebSession_RequestStream_getResponse_Params

type WebSession_RequestStream_getResponse_Params struct{ capnp.Struct }

func NewRootWebSession_RequestStream_getResponse_Params

func NewRootWebSession_RequestStream_getResponse_Params(s *capnp.Segment) (WebSession_RequestStream_getResponse_Params, error)

func ReadRootWebSession_RequestStream_getResponse_Params

func ReadRootWebSession_RequestStream_getResponse_Params(msg *capnp.Message) (WebSession_RequestStream_getResponse_Params, error)

func (WebSession_RequestStream_getResponse_Params) String

type WebSession_RequestStream_getResponse_Params_Future

type WebSession_RequestStream_getResponse_Params_Future struct{ *capnp.Future }

WebSession_RequestStream_getResponse_Params_Future is a wrapper for a WebSession_RequestStream_getResponse_Params promised by a client call.

func (WebSession_RequestStream_getResponse_Params_Future) Struct

type WebSession_RequestStream_getResponse_Params_List

type WebSession_RequestStream_getResponse_Params_List struct{ capnp.List }

WebSession_RequestStream_getResponse_Params_List is a list of WebSession_RequestStream_getResponse_Params.

func NewWebSession_RequestStream_getResponse_Params_List

func NewWebSession_RequestStream_getResponse_Params_List(s *capnp.Segment, sz int32) (WebSession_RequestStream_getResponse_Params_List, error)

NewWebSession_RequestStream_getResponse_Params creates a new list of WebSession_RequestStream_getResponse_Params.

func (WebSession_RequestStream_getResponse_Params_List) At

func (WebSession_RequestStream_getResponse_Params_List) Set

func (WebSession_RequestStream_getResponse_Params_List) String

type WebSession_Response

type WebSession_Response struct{ capnp.Struct }

func NewRootWebSession_Response

func NewRootWebSession_Response(s *capnp.Segment) (WebSession_Response, error)

func NewWebSession_Response

func NewWebSession_Response(s *capnp.Segment) (WebSession_Response, error)

func ReadRootWebSession_Response

func ReadRootWebSession_Response(msg *capnp.Message) (WebSession_Response, error)

func (WebSession_Response) AdditionalHeaders

func (WebSession_Response) CachePolicy

func (WebSession_Response) ClientError

func (WebSession_Response) Content

func (WebSession_Response) HasAdditionalHeaders

func (s WebSession_Response) HasAdditionalHeaders() bool

func (WebSession_Response) HasCachePolicy

func (s WebSession_Response) HasCachePolicy() bool

func (WebSession_Response) HasSetCookies

func (s WebSession_Response) HasSetCookies() bool

func (WebSession_Response) NewAdditionalHeaders

func (s WebSession_Response) NewAdditionalHeaders(n int32) (WebSession_Response_Header_List, error)

NewAdditionalHeaders sets the additionalHeaders field to a newly allocated WebSession_Response_Header_List, preferring placement in s's segment.

func (WebSession_Response) NewCachePolicy

func (s WebSession_Response) NewCachePolicy() (WebSession_CachePolicy, error)

NewCachePolicy sets the cachePolicy field to a newly allocated WebSession_CachePolicy struct, preferring placement in s's segment.

func (WebSession_Response) NewSetCookies

func (s WebSession_Response) NewSetCookies(n int32) (WebSession_Cookie_List, error)

NewSetCookies sets the setCookies field to a newly allocated WebSession_Cookie_List, preferring placement in s's segment.

func (WebSession_Response) NoContent

func (WebSession_Response) PreconditionFailed

func (WebSession_Response) Redirect

func (WebSession_Response) ServerError

func (WebSession_Response) SetAdditionalHeaders

func (s WebSession_Response) SetAdditionalHeaders(v WebSession_Response_Header_List) error

func (WebSession_Response) SetCachePolicy

func (s WebSession_Response) SetCachePolicy(v WebSession_CachePolicy) error

func (WebSession_Response) SetClientError

func (s WebSession_Response) SetClientError()

func (WebSession_Response) SetContent

func (s WebSession_Response) SetContent()

func (WebSession_Response) SetCookies

func (WebSession_Response) SetNoContent

func (s WebSession_Response) SetNoContent()

func (WebSession_Response) SetPreconditionFailed

func (s WebSession_Response) SetPreconditionFailed()

func (WebSession_Response) SetRedirect

func (s WebSession_Response) SetRedirect()

func (WebSession_Response) SetServerError

func (s WebSession_Response) SetServerError()

func (WebSession_Response) SetSetCookies

func (WebSession_Response) String

func (s WebSession_Response) String() string

func (WebSession_Response) Which

type WebSession_Response_ClientErrorCode

type WebSession_Response_ClientErrorCode uint16
const (
	WebSession_Response_ClientErrorCode_badRequest            WebSession_Response_ClientErrorCode = 0
	WebSession_Response_ClientErrorCode_forbidden             WebSession_Response_ClientErrorCode = 1
	WebSession_Response_ClientErrorCode_notFound              WebSession_Response_ClientErrorCode = 2
	WebSession_Response_ClientErrorCode_methodNotAllowed      WebSession_Response_ClientErrorCode = 3
	WebSession_Response_ClientErrorCode_notAcceptable         WebSession_Response_ClientErrorCode = 4
	WebSession_Response_ClientErrorCode_conflict              WebSession_Response_ClientErrorCode = 5
	WebSession_Response_ClientErrorCode_gone                  WebSession_Response_ClientErrorCode = 6
	WebSession_Response_ClientErrorCode_preconditionFailed    WebSession_Response_ClientErrorCode = 11
	WebSession_Response_ClientErrorCode_requestEntityTooLarge WebSession_Response_ClientErrorCode = 7
	WebSession_Response_ClientErrorCode_requestUriTooLong     WebSession_Response_ClientErrorCode = 8
	WebSession_Response_ClientErrorCode_unsupportedMediaType  WebSession_Response_ClientErrorCode = 9
	WebSession_Response_ClientErrorCode_imATeapot             WebSession_Response_ClientErrorCode = 10
	WebSession_Response_ClientErrorCode_unprocessableEntity   WebSession_Response_ClientErrorCode = 12
)

Values of WebSession_Response_ClientErrorCode.

func WebSession_Response_ClientErrorCodeFromString

func WebSession_Response_ClientErrorCodeFromString(c string) WebSession_Response_ClientErrorCode

WebSession_Response_ClientErrorCodeFromString returns the enum value with a name, or the zero value if there's no such value.

func (WebSession_Response_ClientErrorCode) String

String returns the enum's constant name.

type WebSession_Response_ClientErrorCode_List

type WebSession_Response_ClientErrorCode_List struct{ capnp.List }

func NewWebSession_Response_ClientErrorCode_List

func NewWebSession_Response_ClientErrorCode_List(s *capnp.Segment, sz int32) (WebSession_Response_ClientErrorCode_List, error)

func (WebSession_Response_ClientErrorCode_List) At

func (WebSession_Response_ClientErrorCode_List) Set

type WebSession_Response_ErrorBody

type WebSession_Response_ErrorBody struct{ capnp.Struct }

func NewRootWebSession_Response_ErrorBody

func NewRootWebSession_Response_ErrorBody(s *capnp.Segment) (WebSession_Response_ErrorBody, error)

func NewWebSession_Response_ErrorBody

func NewWebSession_Response_ErrorBody(s *capnp.Segment) (WebSession_Response_ErrorBody, error)

func ReadRootWebSession_Response_ErrorBody

func ReadRootWebSession_Response_ErrorBody(msg *capnp.Message) (WebSession_Response_ErrorBody, error)

func (WebSession_Response_ErrorBody) Data

func (WebSession_Response_ErrorBody) Encoding

func (s WebSession_Response_ErrorBody) Encoding() (string, error)

func (WebSession_Response_ErrorBody) EncodingBytes

func (s WebSession_Response_ErrorBody) EncodingBytes() ([]byte, error)

func (WebSession_Response_ErrorBody) HasData

func (s WebSession_Response_ErrorBody) HasData() bool

func (WebSession_Response_ErrorBody) HasEncoding

func (s WebSession_Response_ErrorBody) HasEncoding() bool

func (WebSession_Response_ErrorBody) HasLanguage

func (s WebSession_Response_ErrorBody) HasLanguage() bool

func (WebSession_Response_ErrorBody) HasMimeType

func (s WebSession_Response_ErrorBody) HasMimeType() bool

func (WebSession_Response_ErrorBody) Language

func (s WebSession_Response_ErrorBody) Language() (string, error)

func (WebSession_Response_ErrorBody) LanguageBytes

func (s WebSession_Response_ErrorBody) LanguageBytes() ([]byte, error)

func (WebSession_Response_ErrorBody) MimeType

func (s WebSession_Response_ErrorBody) MimeType() (string, error)

func (WebSession_Response_ErrorBody) MimeTypeBytes

func (s WebSession_Response_ErrorBody) MimeTypeBytes() ([]byte, error)

func (WebSession_Response_ErrorBody) SetData

func (s WebSession_Response_ErrorBody) SetData(v []byte) error

func (WebSession_Response_ErrorBody) SetEncoding

func (s WebSession_Response_ErrorBody) SetEncoding(v string) error

func (WebSession_Response_ErrorBody) SetLanguage

func (s WebSession_Response_ErrorBody) SetLanguage(v string) error

func (WebSession_Response_ErrorBody) SetMimeType

func (s WebSession_Response_ErrorBody) SetMimeType(v string) error

func (WebSession_Response_ErrorBody) String

type WebSession_Response_ErrorBody_Future

type WebSession_Response_ErrorBody_Future struct{ *capnp.Future }

WebSession_Response_ErrorBody_Future is a wrapper for a WebSession_Response_ErrorBody promised by a client call.

func (WebSession_Response_ErrorBody_Future) Struct

type WebSession_Response_ErrorBody_List

type WebSession_Response_ErrorBody_List struct{ capnp.List }

WebSession_Response_ErrorBody_List is a list of WebSession_Response_ErrorBody.

func NewWebSession_Response_ErrorBody_List

func NewWebSession_Response_ErrorBody_List(s *capnp.Segment, sz int32) (WebSession_Response_ErrorBody_List, error)

NewWebSession_Response_ErrorBody creates a new list of WebSession_Response_ErrorBody.

func (WebSession_Response_ErrorBody_List) At

func (WebSession_Response_ErrorBody_List) Set

func (WebSession_Response_ErrorBody_List) String

type WebSession_Response_Future

type WebSession_Response_Future struct{ *capnp.Future }

WebSession_Response_Future is a wrapper for a WebSession_Response promised by a client call.

func (WebSession_Response_Future) CachePolicy

func (WebSession_Response_Future) ClientError

func (WebSession_Response_Future) Content

func (WebSession_Response_Future) NoContent

func (WebSession_Response_Future) PreconditionFailed

func (WebSession_Response_Future) Redirect

func (WebSession_Response_Future) ServerError

func (WebSession_Response_Future) Struct

type WebSession_Response_Header

type WebSession_Response_Header struct{ capnp.Struct }

func NewRootWebSession_Response_Header

func NewRootWebSession_Response_Header(s *capnp.Segment) (WebSession_Response_Header, error)

func NewWebSession_Response_Header

func NewWebSession_Response_Header(s *capnp.Segment) (WebSession_Response_Header, error)

func ReadRootWebSession_Response_Header

func ReadRootWebSession_Response_Header(msg *capnp.Message) (WebSession_Response_Header, error)

func (WebSession_Response_Header) HasName

func (s WebSession_Response_Header) HasName() bool

func (WebSession_Response_Header) HasValue

func (s WebSession_Response_Header) HasValue() bool

func (WebSession_Response_Header) Name

func (WebSession_Response_Header) NameBytes

func (s WebSession_Response_Header) NameBytes() ([]byte, error)

func (WebSession_Response_Header) SetName

func (WebSession_Response_Header) SetValue

func (s WebSession_Response_Header) SetValue(v string) error

func (WebSession_Response_Header) String

func (WebSession_Response_Header) Value

func (WebSession_Response_Header) ValueBytes

func (s WebSession_Response_Header) ValueBytes() ([]byte