daaposts.blogg.se

Icap and d to c repo
Icap and d to c repo












icap and d to c repo

  • func NewRequest(method, urlStr string, httpReq *http.Request, httpResp *http.Response) (*Request, error).
  • func (d *Driver) Send(data byte) error.
  • icap and d to c repo

    func (d *Driver) Receive() (*Response, error).func (d *Driver) ConnectWithContext(ctx context.Context) error.func NewDriver(host string, port int) *Driver.func (c *Client) DoRemaining(req *Request) (*Response, error).func (c *Client) Do(req *Request) (*Response, error).func NewChunkedWriter(w io.Writer) io.WriteCloser.func DumpRequest(req *Request) (byte, error).Req.SetPreview(optResp.PreviewBytes) // setting the preview bytes obtained from the OPTIONS call * making a icap request with RESPMOD method */ * making the icap client responsible for making the requests */ * making a icap request with OPTIONS method */ * making the http client & making the request call to get the response needed for the icap RESPMOD call */

    icap and d to c repo

    HttpReq, err := http.NewRequest(http.MethodGet, " nil)

    icap and d to c repo

    * preparing the http request required for the RESPMOD */ Package icapclient is a client package for the ICAP protocol Icap-client is licensed under the Apache License. This package is still WIP, so totally open to suggestions. Turn on debug mode to inspect detailed & verbose logs to debug your code during development ic.SetDebugMode(true)īy default the icap-client will dump the debugging logs to the standard output(stdout), but you can always add your custom writer f, _ := os.OpenFile("logs.txt", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)įor more details, see the docs and examples. OptReq, err := ic.NewRequest(ic.MethodOPTIONS, "icap://:/", nil, nil) Setting preview obtained from OPTIONS call Note: httpReq & httpResp here are *http.Response & *http.Request respectively Req, err := ic.NewRequest(ic.MethodRESPMOD, "icap://:/", httpReq, httpResp) Import The Package import ic "/egirna/icap-client" Talk to the ICAP servers using probably the first ICAP client package in GO! Installing go get -u /egirna/icap-client














    Icap and d to c repo