"Fossies" - the Fresh Open Source Software Archive

Member "FreeBASIC-1.05.0-linux-x86_64/include/freebasic/libxml/nanohttp.bi" (31 Jan 2016, 3216 Bytes) of package /linux/privat/FreeBASIC-1.05.0-linux-x86_64.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Visual Basic source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 '' FreeBASIC binding for libxml2-2.9.2
    2 ''
    3 '' based on the C header files:
    4 ''    Copyright (C) 1998-2012 Daniel Veillard.  All Rights Reserved.
    5 ''
    6 ''   Permission is hereby granted, free of charge, to any person obtaining a copy
    7 ''   of this software and associated documentation files (the "Software"), to deal
    8 ''   in the Software without restriction, including without limitation the rights
    9 ''   to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   10 ''   copies of the Software, and to permit persons to whom the Software is fur-
   11 ''   nished to do so, subject to the following conditions:
   12 ''
   13 ''   The above copyright notice and this permission notice shall be included in
   14 ''   all copies or substantial portions of the Software.
   15 ''
   16 ''   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   17 ''   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT-
   18 ''   NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
   19 ''   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   20 ''   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   21 ''   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   22 ''   THE SOFTWARE.
   23 ''
   24 '' translated to FreeBASIC by:
   25 ''   Copyright © 2015 FreeBASIC development team
   26 
   27 #pragma once
   28 
   29 #include once "libxml/xmlversion.bi"
   30 
   31 extern "C"
   32 
   33 #define __NANO_HTTP_H__
   34 declare sub xmlNanoHTTPInit()
   35 declare sub xmlNanoHTTPCleanup()
   36 declare sub xmlNanoHTTPScanProxy(byval URL as const zstring ptr)
   37 declare function xmlNanoHTTPFetch(byval URL as const zstring ptr, byval filename as const zstring ptr, byval contentType as zstring ptr ptr) as long
   38 declare function xmlNanoHTTPMethod(byval URL as const zstring ptr, byval method as const zstring ptr, byval input as const zstring ptr, byval contentType as zstring ptr ptr, byval headers as const zstring ptr, byval ilen as long) as any ptr
   39 declare function xmlNanoHTTPMethodRedir(byval URL as const zstring ptr, byval method as const zstring ptr, byval input as const zstring ptr, byval contentType as zstring ptr ptr, byval redir as zstring ptr ptr, byval headers as const zstring ptr, byval ilen as long) as any ptr
   40 declare function xmlNanoHTTPOpen(byval URL as const zstring ptr, byval contentType as zstring ptr ptr) as any ptr
   41 declare function xmlNanoHTTPOpenRedir(byval URL as const zstring ptr, byval contentType as zstring ptr ptr, byval redir as zstring ptr ptr) as any ptr
   42 declare function xmlNanoHTTPReturnCode(byval ctx as any ptr) as long
   43 declare function xmlNanoHTTPAuthHeader(byval ctx as any ptr) as const zstring ptr
   44 declare function xmlNanoHTTPRedir(byval ctx as any ptr) as const zstring ptr
   45 declare function xmlNanoHTTPContentLength(byval ctx as any ptr) as long
   46 declare function xmlNanoHTTPEncoding(byval ctx as any ptr) as const zstring ptr
   47 declare function xmlNanoHTTPMimeType(byval ctx as any ptr) as const zstring ptr
   48 declare function xmlNanoHTTPRead(byval ctx as any ptr, byval dest as any ptr, byval len as long) as long
   49 declare function xmlNanoHTTPSave(byval ctxt as any ptr, byval filename as const zstring ptr) as long
   50 declare sub xmlNanoHTTPClose(byval ctx as any ptr)
   51 
   52 end extern