appengine: google.golang.org/appengine/internal/urlfetch Index | Files

package urlfetch

import "google.golang.org/appengine/internal/urlfetch"

Index

Package Files

urlfetch_service.pb.go

Constants

const Default_URLFetchRequest_FollowRedirects bool = true
const Default_URLFetchRequest_MustValidateServerCertificate bool = true
const Default_URLFetchResponse_ApiBytesReceived int64 = 0
const Default_URLFetchResponse_ApiBytesSent int64 = 0
const Default_URLFetchResponse_ApiCpuMilliseconds int64 = 0
const Default_URLFetchResponse_ContentWasTruncated bool = false

Variables

var URLFetchRequest_RequestMethod_name = map[int32]string{
    1:  "GET",
    2:  "POST",
    3:  "HEAD",
    4:  "PUT",
    5:  "DELETE",
    6:  "PATCH",
}
var URLFetchRequest_RequestMethod_value = map[string]int32{
    "GET":    1,
    "POST":   2,
    "HEAD":   3,
    "PUT":    4,
    "DELETE": 5,
    "PATCH":  6,
}
var URLFetchServiceError_ErrorCode_name = map[int32]string{
    0:  "OK",
    1:  "INVALID_URL",
    2:  "FETCH_ERROR",
    3:  "UNSPECIFIED_ERROR",
    4:  "RESPONSE_TOO_LARGE",
    5:  "DEADLINE_EXCEEDED",
    6:  "SSL_CERTIFICATE_ERROR",
    7:  "DNS_ERROR",
    8:  "CLOSED",
    9:  "INTERNAL_TRANSIENT_ERROR",
    10: "TOO_MANY_REDIRECTS",
    11: "MALFORMED_REPLY",
    12: "CONNECTION_ERROR",
}
var URLFetchServiceError_ErrorCode_value = map[string]int32{
    "OK":                       0,
    "INVALID_URL":              1,
    "FETCH_ERROR":              2,
    "UNSPECIFIED_ERROR":        3,
    "RESPONSE_TOO_LARGE":       4,
    "DEADLINE_EXCEEDED":        5,
    "SSL_CERTIFICATE_ERROR":    6,
    "DNS_ERROR":                7,
    "CLOSED":                   8,
    "INTERNAL_TRANSIENT_ERROR": 9,
    "TOO_MANY_REDIRECTS":       10,
    "MALFORMED_REPLY":          11,
    "CONNECTION_ERROR":         12,
}

type URLFetchRequest Uses

type URLFetchRequest struct {
    Method                        *URLFetchRequest_RequestMethod `protobuf:"varint,1,req,name=Method,enum=appengine.URLFetchRequest_RequestMethod" json:"Method,omitempty"`
    Url                           *string                        `protobuf:"bytes,2,req,name=Url" json:"Url,omitempty"`
    Header                        []*URLFetchRequest_Header      `protobuf:"group,3,rep,name=Header,json=header" json:"header,omitempty"`
    Payload                       []byte                         `protobuf:"bytes,6,opt,name=Payload" json:"Payload,omitempty"`
    FollowRedirects               *bool                          `protobuf:"varint,7,opt,name=FollowRedirects,def=1" json:"FollowRedirects,omitempty"`
    Deadline                      *float64                       `protobuf:"fixed64,8,opt,name=Deadline" json:"Deadline,omitempty"`
    MustValidateServerCertificate *bool                          `protobuf:"varint,9,opt,name=MustValidateServerCertificate,def=1" json:"MustValidateServerCertificate,omitempty"`
    XXX_NoUnkeyedLiteral          struct{}                       `json:"-"`
    XXX_unrecognized              []byte                         `json:"-"`
    XXX_sizecache                 int32                          `json:"-"`
}

func (*URLFetchRequest) Descriptor Uses

func (*URLFetchRequest) Descriptor() ([]byte, []int)

func (*URLFetchRequest) GetDeadline Uses

func (m *URLFetchRequest) GetDeadline() float64

func (*URLFetchRequest) GetFollowRedirects Uses

func (m *URLFetchRequest) GetFollowRedirects() bool

func (*URLFetchRequest) GetHeader Uses

func (m *URLFetchRequest) GetHeader() []*URLFetchRequest_Header

func (*URLFetchRequest) GetMethod Uses

func (m *URLFetchRequest) GetMethod() URLFetchRequest_RequestMethod

func (*URLFetchRequest) GetMustValidateServerCertificate Uses

func (m *URLFetchRequest) GetMustValidateServerCertificate() bool

func (*URLFetchRequest) GetPayload Uses

func (m *URLFetchRequest) GetPayload() []byte

func (*URLFetchRequest) GetUrl Uses

func (m *URLFetchRequest) GetUrl() string

func (*URLFetchRequest) ProtoMessage Uses

func (*URLFetchRequest) ProtoMessage()

func (*URLFetchRequest) Reset Uses

func (m *URLFetchRequest) Reset()

func (*URLFetchRequest) String Uses

func (m *URLFetchRequest) String() string

func (*URLFetchRequest) XXX_DiscardUnknown Uses

func (m *URLFetchRequest) XXX_DiscardUnknown()

func (*URLFetchRequest) XXX_Marshal Uses

func (m *URLFetchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*URLFetchRequest) XXX_Merge Uses

func (dst *URLFetchRequest) XXX_Merge(src proto.Message)

func (*URLFetchRequest) XXX_Size Uses

func (m *URLFetchRequest) XXX_Size() int

func (*URLFetchRequest) XXX_Unmarshal Uses

func (m *URLFetchRequest) XXX_Unmarshal(b []byte) error

type URLFetchRequest_Header Uses

type URLFetchRequest_Header struct {
    Key                  *string  `protobuf:"bytes,4,req,name=Key" json:"Key,omitempty"`
    Value                *string  `protobuf:"bytes,5,req,name=Value" json:"Value,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*URLFetchRequest_Header) Descriptor Uses

func (*URLFetchRequest_Header) Descriptor() ([]byte, []int)

func (*URLFetchRequest_Header) GetKey Uses

func (m *URLFetchRequest_Header) GetKey() string

func (*URLFetchRequest_Header) GetValue Uses

func (m *URLFetchRequest_Header) GetValue() string

func (*URLFetchRequest_Header) ProtoMessage Uses

func (*URLFetchRequest_Header) ProtoMessage()

func (*URLFetchRequest_Header) Reset Uses

func (m *URLFetchRequest_Header) Reset()

func (*URLFetchRequest_Header) String Uses

func (m *URLFetchRequest_Header) String() string

func (*URLFetchRequest_Header) XXX_DiscardUnknown Uses

func (m *URLFetchRequest_Header) XXX_DiscardUnknown()

func (*URLFetchRequest_Header) XXX_Marshal Uses

func (m *URLFetchRequest_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*URLFetchRequest_Header) XXX_Merge Uses

func (dst *URLFetchRequest_Header) XXX_Merge(src proto.Message)

func (*URLFetchRequest_Header) XXX_Size Uses

func (m *URLFetchRequest_Header) XXX_Size() int

func (*URLFetchRequest_Header) XXX_Unmarshal Uses

func (m *URLFetchRequest_Header) XXX_Unmarshal(b []byte) error

type URLFetchRequest_RequestMethod Uses

type URLFetchRequest_RequestMethod int32
const (
    URLFetchRequest_GET    URLFetchRequest_RequestMethod = 1
    URLFetchRequest_POST   URLFetchRequest_RequestMethod = 2
    URLFetchRequest_HEAD   URLFetchRequest_RequestMethod = 3
    URLFetchRequest_PUT    URLFetchRequest_RequestMethod = 4
    URLFetchRequest_DELETE URLFetchRequest_RequestMethod = 5
    URLFetchRequest_PATCH  URLFetchRequest_RequestMethod = 6
)

func (URLFetchRequest_RequestMethod) Enum Uses

func (x URLFetchRequest_RequestMethod) Enum() *URLFetchRequest_RequestMethod

func (URLFetchRequest_RequestMethod) EnumDescriptor Uses

func (URLFetchRequest_RequestMethod) EnumDescriptor() ([]byte, []int)

func (URLFetchRequest_RequestMethod) String Uses

func (x URLFetchRequest_RequestMethod) String() string

func (*URLFetchRequest_RequestMethod) UnmarshalJSON Uses

func (x *URLFetchRequest_RequestMethod) UnmarshalJSON(data []byte) error

type URLFetchResponse Uses

type URLFetchResponse struct {
    Content               []byte                     `protobuf:"bytes,1,opt,name=Content" json:"Content,omitempty"`
    StatusCode            *int32                     `protobuf:"varint,2,req,name=StatusCode" json:"StatusCode,omitempty"`
    Header                []*URLFetchResponse_Header `protobuf:"group,3,rep,name=Header,json=header" json:"header,omitempty"`
    ContentWasTruncated   *bool                      `protobuf:"varint,6,opt,name=ContentWasTruncated,def=0" json:"ContentWasTruncated,omitempty"`
    ExternalBytesSent     *int64                     `protobuf:"varint,7,opt,name=ExternalBytesSent" json:"ExternalBytesSent,omitempty"`
    ExternalBytesReceived *int64                     `protobuf:"varint,8,opt,name=ExternalBytesReceived" json:"ExternalBytesReceived,omitempty"`
    FinalUrl              *string                    `protobuf:"bytes,9,opt,name=FinalUrl" json:"FinalUrl,omitempty"`
    ApiCpuMilliseconds    *int64                     `protobuf:"varint,10,opt,name=ApiCpuMilliseconds,def=0" json:"ApiCpuMilliseconds,omitempty"`
    ApiBytesSent          *int64                     `protobuf:"varint,11,opt,name=ApiBytesSent,def=0" json:"ApiBytesSent,omitempty"`
    ApiBytesReceived      *int64                     `protobuf:"varint,12,opt,name=ApiBytesReceived,def=0" json:"ApiBytesReceived,omitempty"`
    XXX_NoUnkeyedLiteral  struct{}                   `json:"-"`
    XXX_unrecognized      []byte                     `json:"-"`
    XXX_sizecache         int32                      `json:"-"`
}

func (*URLFetchResponse) Descriptor Uses

func (*URLFetchResponse) Descriptor() ([]byte, []int)

func (*URLFetchResponse) GetApiBytesReceived Uses

func (m *URLFetchResponse) GetApiBytesReceived() int64

func (*URLFetchResponse) GetApiBytesSent Uses

func (m *URLFetchResponse) GetApiBytesSent() int64

func (*URLFetchResponse) GetApiCpuMilliseconds Uses

func (m *URLFetchResponse) GetApiCpuMilliseconds() int64

func (*URLFetchResponse) GetContent Uses

func (m *URLFetchResponse) GetContent() []byte

func (*URLFetchResponse) GetContentWasTruncated Uses

func (m *URLFetchResponse) GetContentWasTruncated() bool

func (*URLFetchResponse) GetExternalBytesReceived Uses

func (m *URLFetchResponse) GetExternalBytesReceived() int64

func (*URLFetchResponse) GetExternalBytesSent Uses

func (m *URLFetchResponse) GetExternalBytesSent() int64

func (*URLFetchResponse) GetFinalUrl Uses

func (m *URLFetchResponse) GetFinalUrl() string

func (*URLFetchResponse) GetHeader Uses

func (m *URLFetchResponse) GetHeader() []*URLFetchResponse_Header

func (*URLFetchResponse) GetStatusCode Uses

func (m *URLFetchResponse) GetStatusCode() int32

func (*URLFetchResponse) ProtoMessage Uses

func (*URLFetchResponse) ProtoMessage()

func (*URLFetchResponse) Reset Uses

func (m *URLFetchResponse) Reset()

func (*URLFetchResponse) String Uses

func (m *URLFetchResponse) String() string

func (*URLFetchResponse) XXX_DiscardUnknown Uses

func (m *URLFetchResponse) XXX_DiscardUnknown()

func (*URLFetchResponse) XXX_Marshal Uses

func (m *URLFetchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*URLFetchResponse) XXX_Merge Uses

func (dst *URLFetchResponse) XXX_Merge(src proto.Message)

func (*URLFetchResponse) XXX_Size Uses

func (m *URLFetchResponse) XXX_Size() int

func (*URLFetchResponse) XXX_Unmarshal Uses

func (m *URLFetchResponse) XXX_Unmarshal(b []byte) error

type URLFetchResponse_Header Uses

type URLFetchResponse_Header struct {
    Key                  *string  `protobuf:"bytes,4,req,name=Key" json:"Key,omitempty"`
    Value                *string  `protobuf:"bytes,5,req,name=Value" json:"Value,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*URLFetchResponse_Header) Descriptor Uses

func (*URLFetchResponse_Header) Descriptor() ([]byte, []int)

func (*URLFetchResponse_Header) GetKey Uses

func (m *URLFetchResponse_Header) GetKey() string

func (*URLFetchResponse_Header) GetValue Uses

func (m *URLFetchResponse_Header) GetValue() string

func (*URLFetchResponse_Header) ProtoMessage Uses

func (*URLFetchResponse_Header) ProtoMessage()

func (*URLFetchResponse_Header) Reset Uses

func (m *URLFetchResponse_Header) Reset()

func (*URLFetchResponse_Header) String Uses

func (m *URLFetchResponse_Header) String() string

func (*URLFetchResponse_Header) XXX_DiscardUnknown Uses

func (m *URLFetchResponse_Header) XXX_DiscardUnknown()

func (*URLFetchResponse_Header) XXX_Marshal Uses

func (m *URLFetchResponse_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*URLFetchResponse_Header) XXX_Merge Uses

func (dst *URLFetchResponse_Header) XXX_Merge(src proto.Message)

func (*URLFetchResponse_Header) XXX_Size Uses

func (m *URLFetchResponse_Header) XXX_Size() int

func (*URLFetchResponse_Header) XXX_Unmarshal Uses

func (m *URLFetchResponse_Header) XXX_Unmarshal(b []byte) error

type URLFetchServiceError Uses

type URLFetchServiceError struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*URLFetchServiceError) Descriptor Uses

func (*URLFetchServiceError) Descriptor() ([]byte, []int)

func (*URLFetchServiceError) ProtoMessage Uses

func (*URLFetchServiceError) ProtoMessage()

func (*URLFetchServiceError) Reset Uses

func (m *URLFetchServiceError) Reset()

func (*URLFetchServiceError) String Uses

func (m *URLFetchServiceError) String() string

func (*URLFetchServiceError) XXX_DiscardUnknown Uses

func (m *URLFetchServiceError) XXX_DiscardUnknown()

func (*URLFetchServiceError) XXX_Marshal Uses

func (m *URLFetchServiceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*URLFetchServiceError) XXX_Merge Uses

func (dst *URLFetchServiceError) XXX_Merge(src proto.Message)

func (*URLFetchServiceError) XXX_Size Uses

func (m *URLFetchServiceError) XXX_Size() int

func (*URLFetchServiceError) XXX_Unmarshal Uses

func (m *URLFetchServiceError) XXX_Unmarshal(b []byte) error

type URLFetchServiceError_ErrorCode Uses

type URLFetchServiceError_ErrorCode int32
const (
    URLFetchServiceError_OK                       URLFetchServiceError_ErrorCode = 0
    URLFetchServiceError_INVALID_URL              URLFetchServiceError_ErrorCode = 1
    URLFetchServiceError_FETCH_ERROR              URLFetchServiceError_ErrorCode = 2
    URLFetchServiceError_UNSPECIFIED_ERROR        URLFetchServiceError_ErrorCode = 3
    URLFetchServiceError_RESPONSE_TOO_LARGE       URLFetchServiceError_ErrorCode = 4
    URLFetchServiceError_DEADLINE_EXCEEDED        URLFetchServiceError_ErrorCode = 5
    URLFetchServiceError_SSL_CERTIFICATE_ERROR    URLFetchServiceError_ErrorCode = 6
    URLFetchServiceError_DNS_ERROR                URLFetchServiceError_ErrorCode = 7
    URLFetchServiceError_CLOSED                   URLFetchServiceError_ErrorCode = 8
    URLFetchServiceError_INTERNAL_TRANSIENT_ERROR URLFetchServiceError_ErrorCode = 9
    URLFetchServiceError_TOO_MANY_REDIRECTS       URLFetchServiceError_ErrorCode = 10
    URLFetchServiceError_MALFORMED_REPLY          URLFetchServiceError_ErrorCode = 11
    URLFetchServiceError_CONNECTION_ERROR         URLFetchServiceError_ErrorCode = 12
)

func (URLFetchServiceError_ErrorCode) Enum Uses

func (x URLFetchServiceError_ErrorCode) Enum() *URLFetchServiceError_ErrorCode

func (URLFetchServiceError_ErrorCode) EnumDescriptor Uses

func (URLFetchServiceError_ErrorCode) EnumDescriptor() ([]byte, []int)

func (URLFetchServiceError_ErrorCode) String Uses

func (x URLFetchServiceError_ErrorCode) String() string

func (*URLFetchServiceError_ErrorCode) UnmarshalJSON Uses

func (x *URLFetchServiceError_ErrorCode) UnmarshalJSON(data []byte) error

Package urlfetch imports 3 packages (graph) and is imported by 5 packages. Updated 2019-04-26. Refresh now. Tools for package owners.